next up previous contents
Next: Enumerate Up: Programming Tools and Functions Previous: ASCII to Integer


Calling Sequence:
assign(a, v)
a : name
v : anything

Returns: void
Synopsis: This function assigns the value v to the name a. The assign function ignores the built-in scoping rules. Therefore, an assign call inside of a procedure persists after it is finished executing. A variable name can not be assigned a value from within a procedure if a global variable of the same name has already been assigned a value.

> z := proc() 
>  assign(t, 100);
> end;
> z(); t;

Gaston Gonnet