| Newsgroups |
gmane.games.devel.sweng |
| Message-ID |
<OF0F6A7397.504E728F-ON882576B8.0082675D-882576B8.008353C4@playstation.sony.com> |
Emil Dotchevski wrote:
> 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.
Mat Noguchi's point, I believe, was that code and data are not treated
identically in LISP, but people often incorrectly imply that is the
case. Specifically, you can hold pointers to compiled functions, but
you cannot manipulate the compiled function as if it was a LISP data
structure. (This of course makes perfect sense.)
The fact that I can compile code on the fly in LISP, through built-in
mechanisms in the language, is a completely different issue.
I can, of course, also compile code on the fly in C or C++ in exactly
the same sense that LISP can, but it is not a built-in mechanism in
the language, and it would require system-specific manipulation to
do a system() call to the compiler, loading up the compiled code
into memory, and calling it. Any good programmer should be able to
write the code to do this. It's still a completely different point
from what Mat made.
Christer Ericson, Director of Tools and Technology
Sony Computer Entertainment, Santa Monica
_______________________________________________
Sweng-Gamedev mailing list
[email protected]
http://lists.midnightryder.com/listinfo.cgi/sweng-gamedev-midnightryder.com