Empty array and AA literals

dnspies dspies at ualberta.ca
Sat Apr 5 20:17:23 PDT 2014


What's the syntax for a new empty dynamic array or associative 
array?

Every time I want to set a AA, I have to say:
(supposing I already have some variable int[int] aa which points 
to the wrong one)

int[int] throwaway;
aa = throwaway;

Is  there a way to say something like:

aa = new int[int] ?

like I would with a class.

What about for a normal dynamic array?


More information about the Digitalmars-d-learn mailing list