static array literal syntax request: auto x=[1,2,3]S;

Mehrdad wfunction at hotmail.com
Sun Jun 10 17:08:53 PDT 2012


>> Type deduction.
>
> Exactly. And if they need to be assigned to a static array, 
> then the compiler
> can automatically do what it needs to do to avoid the extra 
> heap allocation.
>
> - Jonathan M Davis


"Type deduction"?  o.O
I don't understand... could someone give me an example of what 
would break if we used the rule I suggested?


More information about the Digitalmars-d mailing list