HP 3000 Manuals

RANGE [ HP Pascal/iX Reference Manual ] MPE/iX 5.0 Documentation


HP Pascal/iX Reference Manual

RANGE 

RANGE is an HP Standard Option.

When the RANGE compiler option is ON, the compiler generates
range-checking code for assignments, array indices, parameter passing,
extensible parameters, pointers, CASE statements, and set operations.  If
a range check fails, an error message is issued and the program aborts
(or causes an escape to be executed if a TRY-RECOVER construct is
active).

The command line option +R also specifies this option.

Syntax 

$RANGE {ON }$
       {OFF}

Default       ON.

Location      Statement.


NOTE Even when RANGE is ON, the compiler generates as little range-checking code as possible. If it can determine that a value can never be out of range at run time, it does not generate range-checking code for that variable.


MPE/iX 5.0 Documentation