Scoping rules and "this" in EGL

If an EGL part declares a variable or constant, the identifier used in the declaration is in scope (available) throughout the part:
Identifiers that are identical cannot be in the same scope. However, most identifiers refer to an area of memory that is logically inside a container such as a record; and in those cases your code qualifies an identifier with the name of the enclosing container. If the function variable myString is in a record called myRecord01, for example, your code refers to the variable as a field of the record:
  myRecord01.myString
If the same identifier is in two scopes, any reference to the identifier is a reference to the most local scope, but you can use qualifiers to override that behavior:

Related concepts
Function part
Library part of type basicLibrary
Library part of type nativeLibrary
PageHandler
Parts
Program part
References to parts
References to variables in EGL
Overview of EGL properties
Fixed structure
Typedef

Related tasks
Declaring variables and constants in EGL

Related reference
Function invocations
Function part in EGL source format

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.