The Expressiveness of D

Torarin torarind at gmail.com
Tue Nov 2 06:39:29 PDT 2010


> // these don't work - why?
> //  auto b = [new B, new C];
> //  auto c = { return [1: new B,2: new C]; };

That seems to be just a matter of improving the compiler to make it
find the common type. I don't think there's anything in the language
stopping that from working.


More information about the Digitalmars-d mailing list