\"\" \"\" \"\"
Go backward to Alloc(): Allocation
Go up to Allocation
RISC-Linz logo

alloc(): Allocation (Binding Form)

a.alloc(n)
Array<T> a
      int n

Specification: Binds a to a new array with n slots. The contents of the slots are undefined. This binding overrides any previous binding of a.

Constraints: It is illegal to call alloc with n < 0.

Note: This operation is more efficient than the otherwise equivalent form 

a = Array<T>::Alloc(n)

Author: Wolfgang Schreiner
Last Modification: April 12, 1997