Return
to Chapter 8
Accessin Nonlocal Environments
-
The nonlocal variables
of a subprogram are those that are visible within the subprogram but are
not locally declared.
-
Global variables are
those that are visible in all program units.
FORTRAN COMMON Blocks - see figure 8.3 on page 368
Ada, Module-2 - use static scoping
- can also specify access to external modules.
C++, Java - class
C - globals & extern statement