Question about initialization

Adam D. Ruppe destructionator at gmail.com
Fri Jun 4 11:28:48 UTC 2021


On Friday, 4 June 2021 at 11:27:05 UTC, seany wrote:
> In my untrained eye, this seems haphazard. One requires the use 
> of the new keyword

It doesn't.

T[] a;

just works. it is an array of length 0.


More information about the Digitalmars-d-learn mailing list