Array of array

Manfred Nowak svv1999 at hotmail.com
Mon Jan 2 18:04:39 PST 2012


Jonathan M Davis wrote:

> new is used for creating _dynamic_ arrays, not static arrays.

Correct, my fault. I meant something like "statically initialized dynamic", 
because `new' currently needs an `uint' number to allocate some space for 
the elements of the outermost array.

The posting shows, that it is correct not to initialize the length of a 
dynamic array by some number (even zero would be wrong).

Despite of this: the errormessage is missing an important point.

-manfred


More information about the Digitalmars-d-learn mailing list