struct S { int i; void opCall(int i) { } }
S s = S(3); // clearly a constructor
s(3); // clearly opCallIs this just a technical limitation, or is there some other reasoning?
See (http://dlang.org/operatoroverloading.html#function-call).
struct S { int i; void opCall(int i) { } }
S s = S(3); // clearly a constructor
s(3); // clearly opCallIs this just a technical limitation, or is there some other reasoning?
See (http://dlang.org/operatoroverloading.html#function-call).