REAL INDEX

REAL _ _ _ _ _ _ _ _ _ _ _ _ declaration

The real declaration must be made immediately after a begin (or other variable declaration such as integer and scalar) and declares local integer variables. They are initialized to zero.

syntax:

real<identifier>{,<identifier>}*

<identifier> may be any valid REDUCE identifier, except t or nil.

Real variables remain local, and do not share values with variables of the same name outside the begin...end block. When the block is finished, the variables are removed. You may use the words integer or scalar in the place of real. real does not indicate typechecking by the current REDUCE; it is only for your own information. Declaration statements must immediately follow the begin, without a semicolon between begin and the first variable declaration.

Any variables used inside a begin...end block that were not declared scalar, real or integer are global, and any change made to them inside the block affects their global value. Any array or matrix declared inside a block is always global.