Advertisement

Scope and Extent

  • Ellis Horowitz

Abstract

Scope refers to the way in which named entities such as variables, labels, types and procedures are controlled in their ability to have an effect in a program. To be more specific, the scope of a name is that part of the program text where all uses of the name are the same. This concept should not be confused with the related but distinct concept called extent which is the time during execution that the storage used to hold a variable’s value is bound to its name. In this chapter we study both of these notions. As scope and extent have long been recognized as essential issues of programming languages, they have been discussed in many texts before. Similar and more detailed treatments can be found in [Wulf 81 and Tennent 81].

Keywords

Global Variable Activation Record Garbage Collection Free List Program Text 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Computer Science Press 1983

Authors and Affiliations

  • Ellis Horowitz

There are no affiliations available

Personalised recommendations