aa bug?

Saaa empty at needmail.com
Tue Jul 28 17:41:20 PDT 2009


struct literals .. need to remember all D's features :)
D1.046 seems SS
aa["test"]=S();
works fine as well

> Try:
>
> struct S { int i; }
> S[char[]] aa;
>
> void main() {
>    aa["test"] = S(10);
> }
>
> In theory a Sufficiently Smart Compiler is able to optimize that code 
> well.
>
> Bye,
> bearophile 




More information about the Digitalmars-d-learn mailing list