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
MATin current namespaceWto produce argument for function. - Switch to namespace
X.YwithinW. - Evaluate function
DUPin namespaceW.X.Ywith argument. - Switch back to namespace
W. - Assign variable
Ain namespaceW.