Main Index : Reference :

[array]


Definition

The array type in C.O.F.F.E.E. can contain any kind of variable or object reference. Arrays can be one-, two- or three-dimensional.

Cast

Arrays are created with the new() function: var arr = new(array,16). To create a two-dimensional array, use new(array,16,16).

Usage

The individual characters in an array are accessed with the array operator, []. Remember that the first element is arr[0], so the nth element in arr is accessed with arr[n-1].

See Also

typeof(), sizeof()