static array literal syntax request: auto x=[1,2,3]S;
Christophe Travert
travert at phare.normalesup.org
Thu Jun 14 03:23:43 PDT 2012
"Steven Schveighoffer" , dans le message (digitalmars.D:169718), a
écrit :
> Note that D1 was like this, [1,2,3] was auto-typed to int[3u]. It was a
> constant source of pain that I would not like to revisit. Especially
> since static arrays are now passed by value.
>
> -Steve
Since static are passed by value, static arrays are now safe to use.
This should decrease the pain a lot.
More information about the Digitalmars-d
mailing list