Ven::Context
Inherits Reference / Object
Constructors
new
SourceInstance methods
clear
Clear the context, namely .clear the traces and erase all but global scopes. Used to clean up after an in-function error when using the REPL
fetch(name : String) : Model | Nil
Try searching for an entry's value starting from the localmost, ending with the globalmost scope
local(initial : Tuple(Array(String), Array(Model)) | Nil, trace t : Tuple(QTag, String), &)
Run a block of code in a local scope: push a new scope,
execute the block and pop the scope. initial is a
tuple of initial entries: keys and values. trace is
the trace the block will leave as it is executed
traces
Source