2 ms·
In Pascal you can use any ordinal type as the type of the array index. You can create a new type from a range of ordinal values. So you can have arrays where t
by kwhitefoot 6y ago
In Pascal you can use any ordinal type as the type of the array index. You can create a new type from a range of ordinal values.
So you can have arrays where the index runs from -10 to +20 or from +7 to +26 for instance. Booleans are also ordinal types so you can have an array where the index is boolean.