On 10/7/12, bearophile <[email protected]> wrote:
> 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);
> }

opCall isn't static so there's no ambiguity here imo.

Reply via email to