Talk:Runtime evaluation: Difference between revisions

→‎Evaluation vs. invocation: Not chain loading, no.
(It's still no clearer. Is this chainloading?)
(→‎Evaluation vs. invocation: Not chain loading, no.)
Line 68:
 
::It's still no clearer. Is this chainloading? [[User:Markhobley|Markhobley]] 09:04, 20 July 2011 (UTC)
:::No. If you wanted to something like this in C, you might create a function which took C source code, compiled and linked it in your process's own address space (with some of the current process's active symbols available to that compile/link procedure), and then called its entry point. In Perl, you would simply call eval($yourSourceCode), and it would execute Perl with all variables in-scope at the time of eval() available to the eval()'d code. --[[User:Short Circuit|Michael Mol]] 11:21, 20 July 2011 (UTC)