Arrays, openarrays, varargs

!!! warning This auditors' handbook is frozen and obsolete; the Nim language manual alongside other Nim documentation, Status Nim style guide, Chronos guides, and Nim by Example supercede it.

Arrays

TODO

Openarrays

Openarray are a parameter-only type that represent a (pointer, length) pair. In other languages they are also known as slices, ranges, views, spans.

The name openArray is inherited from Pascal, Oberon and Modula 2

Arrays and sequences are implictily converted to openArray.

The compiler has a limited form of escape analysis to prevent capturing openarrays in closures or returning them.

UncheckedArrays

TODO