Namespace Reference Evaluation
When the interpreter encounters a namespace reference, it:
- Switches to the namespace.
- Evaluates the name.
- Switches back to the original namespace.
If for example, in the following, the current namespace is #.W
, the interpreter evaluates the line:
A ← X.Y.DUP MAT
in the following way:
- Evaluate array
MAT
in current namespaceW
to produce argument for function. - Switch to namespace
X.Y
withinW
. - Evaluate function
DUP
in namespaceW.X.Y
with argument. - Switch back to namespace
W
. - Assign variable
A
in namespaceW
.