New vs length on dymamic array

Andrey saasecondbox at yandex.ru
Mon Nov 9 08:06:54 UTC 2020


Hello,

Are here any differences in creation of dynamic array with known 
size?

> auto array = new wchar[](111);

and

> wchar[] array;
> array.length = 111;


More information about the Digitalmars-d-learn mailing list