Runtime evaluation: Difference between revisions

Content added Content deleted
m (syntax highlighting fixup automation)
(Adds slope example)
Line 1,767: Line 1,767:


Slate can sandbox via constructing a fresh namespace and evaluating within it, but this mechanism is not strongly secure yet.
Slate can sandbox via constructing a fresh namespace and evaluating within it, but this mechanism is not strongly secure yet.

=={{header|Slope}}==
You can create a list via quoted symbols and then evaluate:
<syntaxhighlight lang="slope">(eval (list '+ 1 2 3 4 5))</syntaxhighlight>

Or, you can evaluate a string as code:
<syntaxhighlight lang="slope">(eval "(+ 1 2 3 4 5)" #t)</stringhighlight>


=={{header|Smalltalk}}==
=={{header|Smalltalk}}==