[M3devel] Dynamic open array question

Tony Hosking hosking at cs.purdue.edu
Thu Feb 26 04:54:59 CET 2009


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;




More information about the M3devel mailing list