Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

The forced execution of souce code

Name: Anonymous 2009-11-19 5:27

How's called the ability of a language to interpret new code at runtime (the keyword/function that does this is typically called eval)?

For example Perl, Python, JavaScript and most shell languages have this. C and C++ haven't it.

Does Haskell have it? What about C#?

Note that shit like manually invoking the compiler doesn't count.

Name: Anonymous 2009-11-20 12:04

>>19
>Obviously you're very fucked in C with normal compiled code, as the code itself has no notion of variable names, just to name the least of the problems.
Not really... your eval function could just export i to the evalled program using plain old dynamic linking. Eval would prepend its input with "extern int i;" and everything would work great.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List