Runtime evaluation: Difference between revisions

m
No edit summary
Line 1,064:
=={{Header|Sparkling}}==
 
In Sparkling, the standard library provides functions to compile expressions and statements into functions. Each such function is considered a different top-level program, running in the execution context of it's "parent" program (i. e. the piece of code from within which it was created). Consequently, functions compiled at runtime share their environment (e. g. all globals) with their parent program.
 
Compiled expressions and statements can take arbitrary arguments and return values to the caller. As with any function, the expression or statement being compiled can refer to its arguments using the <tt>#</tt> prefix operator.
Anonymous user