up previous next
import an external variable by reference or value
***YOU PROBABLY SHOULDN'T USE THESE COMMANDS YET!***
is the name of a variable in the containing scope.
It seems that they can be used only inside anonymous functions (see
These commands "import" an external variable by reference or value.
creates a local variable with the given name, and its
initial value is taken from the variable of the same name in the context
the anonymous function is defined.
creates a reference to
the named variable in the context where the anonymous function is defined.
NOTE: Package variables should be accessed directly (via their fully
qualified names); they cannot be imported.
/**/ Define add(X)
/**/ AnonFn := Func(Y) ImportByValue X; Return X+Y; EndFunc;
/**/ Return AnonFn;
/**/ add3 := add(3);