resizeable arrays: T[new]

Walter Bright newshound1 at digitalmars.com
Fri Jun 8 02:20:26 PDT 2007


Oskar Linde wrote:
> Walter Bright skrev:
> 
>> [...] the difference between static arrays and dynamic arrays is very 
>> large. For one thing, static arrays are passed by value, and dynamic 
>> arrays by reference.
> 
> This sounds intriguing. Does this mean that static arrays will be passed 
> by value in D 2.0?

Yes.

> Will string literals become dynamic (invariant) 
> arrays instead of static too?

They'll be invariant static arrays.



More information about the Digitalmars-d-announce mailing list