Runtime evaluation: Difference between revisions

m (omit Ada)
Line 475:
{{incorrect|Smalltalk|It does not discuss passing in or returning values, or the environment the expression is evaluated in., and it does not show taking in an arbitrary program as from user input.}}
<lang smalltalk>[ 4 + 5 ] value.</lang>
Evaluating a block given as a string: (Squeak, Pharo)
<lang smalltalk>e := '[ :x :y | (x*x + (y*y)) sqrt ]'.
Transcript show: ((Compiler evaluate: e) value: 3 value: 4).</lang>
 
=={{header|Tcl}}==
Anonymous user