Variables

A variable is a named entity within an EGL application whose value can change at run time. The general class of variables includes the following:

A type is a modifier that limits the set of values appropriate for a variable. For example, INT is a numeric type that guarantees that a variable contains a whole number.

In addition, you can classify variables as either value type or reference type. A value type variable contains data: numbers, characters, or structured information. A reference variable contains the address of an area of storage that contains the data. In some languages such as C, reference variables are called pointers. The rules for the two types of variables are different; see Reference variables and Reference compatibility in EGL for some examples.


Feedback