|
CONST east = 0; south = 1; west = 2; north = 3; directions = 4; TYPE Direction = SHORTINT; (* east..north *) TYPE Delta = SHORTINT; (* [-1..1] *) VAR dx, dy: ARRAY directions OF Delta; |
Da Bereichstypen im Vergleich zu Modula-2 fehlen,
wird in Oberon statt einem Bereich nur die Anzahl der
Elemente bei einem Feldtyp angegeben.
| |
Indiziert wird immer ab 0.
|
Copyright © 1999 Andreas Borchert, in HTML konvertiert am 29.06.1999 |