[String] eval | Manual

[String] eval

Evaluates the contents of the string as code. In contrast to other languages, an eval statement can only execute a very limited set of messages. Typically only Array and Map building can be performed using eval. Using eval in Citrine can therefore be considered 'safe'.
Usage:


 a := 'Array < 1 ; 2 ; 3' eval.
 x := a @ 2. #3

back to homepage
back to manual menu

This API reference guide has been generated automatically from source code comments using the shtml.ctr script.