Contents | Index | < Browse | Browse >

2.8.  Local variables

     Local variables differ from global	 variables  in	that
their  name is limited in scope	to the routine in which	they
appear.	 They are represented by sixteen-bit IDs  which	 may
be passed to other routines if desired.	 Local variables may
be implemented in one of two ways: on the stack	(like  local
variables  on  C  and  Pascal)	in  which case they are	only
around for as long as the current invocation of	the routine;
or  they  may  reside  in the same space as global variables
(like static locals in C or local variables in	FORTRAN)  in
which  case  they persist for the entire duration of program
execution.  Consult your local ADL documentation  to  deter-
mine which method is used in your implementation.