Contents | Prev | Next

"5.5 Allow constant ranges"

When this extension is enabled (the default), the Irie Pascal compiler will recognize constant ranges in case statements and variant records.

Constant Ranges

You can use constant ranges to specify a number of consecutive case constants. To use a constant range you specify the first constant, and the last constant, separated by .. as follows:


So for example you could use the constant range


to specify the following constants

   1, 2, 3, 4, 5

See the Irie Pascal Programmer's Reference Manual for more information.

Contents | Prev | Next