Answer
In the absence of global variables, the relationship of a program unit to the
rest of the program is easy to determine. All information must be communicated
via explicit parameters, and their identities can be determined by looking at
the unit's header. With global variables, the problem of understanding exactly
what a program is---and even just determining what its inputs and outputs
are---becomes much more difficult.
Return to lesson.
Hamlet Project
hamlet@cs.utah.edu