An Array is declared as:
|
and created by:
|
or concisely:
|
Subscripts are range checked in runtime and so vec[-1] and vec[128] will generate exceptions. |
Array length can be extracted via the length instance variable, e.g.
|
Arrays of arbitrary objects can be constructed,
|
Arrays can have dynamic sizing
|