The only constructor for a dynamic array is NEW. To initialize the elements you need to copy them in, something like: a := NEW(REF ARRAY OF INTEGER, n); SUBARRAY(a^, 0, LENGTH(sample)-1) := sample;