Le 17/04/2012 22:13, bearophile a écrit : >> http://d.puremagic.com/issues/show_bug.cgi?id=6253 > If I see a int[Foo] and I get immutable Foo keys, I am astonished. > > Not doing what I am saying here will add another special case to D > language. Avoiding many special cases is one the reasons I program in D > instead of C++. > > Bye, > bearophile
I agree, but if I had to choose, I'd rather be astonished than forced to have a program twice as slow because I need to duplicate all my keys for the compiler to be happy.
