Le 07/10/2012 04:24, bearophile a écrit :
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

opCall isn't static here. So it shouldn't be involved.

Reply via email to