opCall/ctor partially sorted out

deadalnix deadalnix at gmail.com
Sun Oct 7 14:06:33 PDT 2012


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.


More information about the Digitalmars-d mailing list