Skip to content

eval

builtin · libnexusinterp/corefcn/eval-proprietary.cc

: eval (try)
: eval (try, catch)
: v = eval (try)
: v = eval (try, catch)

Compile and run the Nexus code held in the string try.

Should running try raise an error, and a second string catch has been supplied, catch is compiled and run in its place. Any value the executed code produces can be captured in v.