Scope

Scope refers to the largest region of a program where you can refer to a name without having to qualify it. That is, scope is the context that you can use to differentiate entities that have the same name. Most procedural languages have the concept of a subroutine; typically, if you declare a variable myVar in a subroutine, its value is local to that subroutine. Local means that the program that called the subroutine cannot see the variable and does not have access to its value.

To understand scope in EGL, you need to understand the structure that provides scope for the names in a program; see Parts.


Feedback