Runtime evaluation: Difference between revisions

Added a "../" defore "compiler" in import statement. Added a comment about the working versions.
(Added a "../" defore "compiler" in import statement. Added a comment about the working versions.)
Line 1,085:
=={{header|Nim}}==
'''File: runtime_eval.nim'''
<lang nim>import ../compiler/[nimeval, llstream, ast], strformat, os
 
let std = findNimStdLibCompileTime()
Line 1,125:
./runtime_eval baz '["hello","dynamic","world"][baz]'</pre>
{{out}}
The second example works only with development version 1.5.x. Other examples work with version 1.4.x.
<pre>
exp(bar.float) = 1.0
Anonymous user