Re: My thoughts on C# and gaming.

Emil Dotchevski <[email protected]>
Newsgroups gmane.games.devel.sweng
Message-ID <[email protected]>
On Wed, Jan 27, 2010 at 2:40 PM,  <[email protected]> wrote:
> Jon Wätte wrote:
>> (defun foo (...))
>> (car foo)
>>
>> Or some crazy thing like that at runtime. (Maybe you can?)
>>
>> Yes, you can! That's the whole point of the argument!
>
> You can, but only because a lisp symbol has both a function
> binding as well as a value binding. 'defun' sets the function
> binding of 'foo' to the function defined. In the 'car'
> call, we're looking up the value binding of 'foo', not
> the function binding.
>
> So, no, it's not really the same.

Right, but can you work with code as if it were data? Can you create
code dynamically like you can create data dynamically? From that point
of view, it is the same.

Compare this to C++: while "code" is integrated in the type system of
the language (for example void(int) is a type) a C++ program can not
create code dynamically. The only thing that can do that is a
compiler, which is not part of the language itself. So that's a
completely different level of separation between code and data.

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode
_______________________________________________
Sweng-Gamedev mailing list
[email protected]
http://lists.midnightryder.com/listinfo.cgi/sweng-gamedev-midnightryder.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.