[Oberon] A CASE quiz
Diego Sardina
dsar at eml.cc
Sat Feb 17 15:40:24 CET 2018
On Sat, Feb 17, 2018, at 3:29 PM, Diego Sardina wrote:
> VAR nonAlphaNumerics : ARRAY 256 OF BOOLEAN;
> VAR nonWhiteSpaces : ARRAY 256 OF BOOLEAN;
>
> nonAlphaNumerics[ORD("A")] := FALSE;
> nonAlphaNumerics[ORD("B")] := FALSE;
> [...]
>
An interesting note, Modula-3 permits this declaration:
VAR nonAlphaNumerics : ARRAY CHAR OF BOOLEAN;
With this form, it's possible to use nonAlphaNumerics["B"] without a type conversion on the index
More information about the Oberon
mailing list