Programming in Modula-2 pp 49-50 | Cite as
The concept of locality
Chapter
Abstract
If we inspect the preceding example of procedure Add, we notice that the role of the variable i is strictly confined to the procedure body. This inherent locality should be expressed explicitly, and can be done by declaring i inside the procedure declaration. i thereby becomes a local variable.
Copyright information
© Springer-Verlag Berlin Heidelberg 1985