The concept of locality

  • Niklaus Wirth
Part of the Texts and Monographs in Computer Science book series (MCS)

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

Authors and Affiliations

  • Niklaus Wirth
    • 1
  1. 1.Institut für InformatikZurichSwitzerland

Personalised recommendations