next up previous contents
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 5.2.2.




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

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 15:03:35 GMT 1996
Not for commercial use.