
context - evaluates the expression in a different context

Calling sequence:
context(expr)

Parameter:

expr   --  any expression

Summary:

context firstly evaluates expr as usual. The result is then re-calculated in
the context that was valid before the present procedure was called.  This
function is necessary for proceduresthat use the option hold, as well as for
certain cases in the evaluation of domain methods.

The function must not be called on the interactive level or directly in a parallel
statement or the function context.  Therefore, it is not possible to carry
out evaluations on more than one context-level higher by using embedded
context calls. context is a kernel function.

>>  i:=2:
   f := proc()
   local  i;
   begin
      print(i,context(i));
   end_proc(i);

      i,2

