resizeable arrays: T[new]

Oskar Linde oskar.lindeREM at OVEgmail.com
Thu Jun 7 03:18:04 PDT 2007


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? Will string literals become dynamic (invariant) 
arrays instead of static too?

/Oskar



More information about the Digitalmars-d-announce mailing list