Scope rules
The unmanaged namespace
Global variables and pools defined in the unmanaged namespace have no enforced visibility restrictions.
A managed namespace
The scope rules for referencing classes, application variables, and pools that are defined in a managed namespace honor the prerequisite relationship between applications.
Within application A, the following names are visible:
o Names in A's namespace
o Public names managed by A's transitive prerequisites
Within application A, the following names are not visible:
o Names declared in applications that are not in A's prerequisite chain
o Names that are declared as private in an application namespace other than A's
The names of classes, pools, and application variables can be referenced only if they have the following characteristics:
o Defined in the namespace in which they are referenced
o Publicly defined in one of the namespaces of the application's prerequisites
These scope rules apply for all names, including the names of the following entities:
o Superclasses and shared pools referenced in class definitions
o Classes being extended
o Variables not declared local to the method body, other than class variables and instance variables
Out-of-scope references in applications are found by selecting Query > Out Of Scope References from the Tools menu of the Transcript. Out-of-scope references generate warnings, which are logged to the Transcript.
Last modified date: 01/29/2015