Hacker News new | ask | show | jobs
by kwhitefoot 1270 days ago
Pascal arrays can use any sub-range of an ordinal type as the index. You should define the distinct type of the index instead of using integers then you will get an exception if you attempt to use an out of range index.