Contents | Prev | Next

17.3 Order of evaluation of index-expressions

6.5.3.2 The order of evaluation of the index-expressions of an indexed-variable is implementation-dependent.

Irie Pascal evaluates index expressions of indexed variables from left to right. For example given

     var   x[1..10, 1..20] of integer;

and later on

     x[i, j] := 20;

i will get evaluated before j.

Contents | Prev | Next