next up previous
Next: Local Data Up: Program Units Previous: Function Example

 

Scope

 

The scope of an entity is the range of a program within which an entity is visible and accessible. Most entities have a scope which is limited to the program unit in which they are declared, but in special circumstances some entities can have a scope that is wider than this. The best way to provide global data is by implementing a MODULE which contains the required global data declarations and then USE ing it wherever requiredgif. Global data will be discussed later in Section 24.2.




next up previous
Next: Local Data Up: Program Units Previous: Function Example

Adam Marshall ©University of Liverpool, 1996
Wed Oct 9 17:57:29 BST 1996