|
3.7.2 Names in proceduresAll variables are local to the procedure they are defined in. Locally defined variables cannot interfere with names in other procedures and are automatically deleted after leaving the procedure. Internally, local variables are stored using the nesting level. A variable
is said to have nesting level 1, if it is local to a procedure that was
called interactively, nesting level 2, if it is local to a procedure that
was called by a procedure of nesting level 1 etc. To keep local variables after leaving the procedure, they have to be
exported (i.e. made known) to some higher level by the Example:
Note that the variable |