|
3.7.2 Names in proceduresAll variables are local to the procedure they are defined in and to the package in which the procedure is defined. 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 or to some package
by a command like Example:
result became a global variable after the
execution of xxx .
|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |