opCall/ctor partially sorted out

bearophile bearophileHUGS at lycos.com
Sat Oct 6 19:24:33 PDT 2012


Recently one of the most important bugs was mostly fixed, beside 
Win64 support this is one of the most important changes in dmd 
2.061:

http://d.puremagic.com/issues/show_bug.cgi?id=6036


Do you think this has to be correct code?

struct Adder {
     int v;
     int opCall(int x) { return x + v; }
}
void main() {
     auto a = Adder(5);
}

Bye,
bearophile


More information about the Digitalmars-d mailing list