Hello,

I want to overload a primitive type operator so that I can do something like

double a;
myStruct b;
writeln(a + b);

but have no idea how to do it. Something similar(?) is already implemented in the language, i.e.

double x;
double[] y;
writeln(x + y);

but after searching the dmd2/src, what I found didn't offer any help.

-Dominic Jones

Reply via email to