News for hackers. Stuff that matters.
Re:Giving Ada a Chance by kwhitefoot on Tuesday March 02, 2021 @05:24PM (#26321888)
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.

There are no comments on this comment yet.