Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Pascal has both. Static arrays in Pascal can have arbitrary indexes with mixed data types:

http://docwiki.embarcadero.com/RADStudio/Sydney/en/Structure...

Examples:

- var MyArray: array [1..100] of Char;

- packed array[Boolean, 1..10, TShoeSize] of Integer;

Dynamic arrays are indexed from zero.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: