Runtime evaluation: Difference between revisions
Content added Content deleted
m (omit Ada) |
|||
Line 475: | 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.}} |
{{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> |
<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}}== |
=={{header|Tcl}}== |