Hacker News new | ask | show | jobs
by berkut 3459 days ago
How can checks be done if the size is dynamic based on run-time data?
1 comments

"Integer between 0 and n-1 inclusive" is the type of valid indices for an n element array. The trouble is most languages don't have type systems that allow expressing that.
The Pascal family are such languages.