dynamic array creation

Myron Alexander someone at somewhere.com
Wed May 9 16:58:23 PDT 2007


Jarrett Billingsley wrote:
> They will give you exactly the same result, though the
> 
> T[] arr = new T[n];
> 
> form will be slightly faster, only because it doesn't have to check to see 
> what the current length of the array is when it resizes it. 
> 
> 

Jarrett, Orgoton, Alexander,

Thanks for the info.

Myron.


More information about the Digitalmars-d-learn mailing list