class

Ven::Context

Inherits Reference / Object

Constructors

Instance 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

Source
define(name : String, value : Model)

Make an entry in the localmost (rightmost) scope

Source
fetch(name : String) : Model | Nil

Try searching for an entry's value starting from the localmost, ending with the globalmost scope

Source
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

Source
trace

Get the latest trace

Source
traces
Source