4.1.3 Use and Alter Declarations Access Global Variables


Use and Alter declarations list Class Globals accessed within a procedure. A Use declaration provides read-only access while Alter allows you to modify the Global as well. These declarations can take one of the following forms:


Initially Globals in the Class that contains a procedure will be automatically brought in as a Use (read-only) declaration. For write access you will have to explicitly list it on an Alter declaration. Subsequent Use and Alter declarations are processed by reading the preambles in the Classes in the order listed. There are four kinds of name conflicts that may occur when accessing Globals.

Local Variable Declaration

Procedure Precondition