primitive type operator overload
dominic jones
dominic.jones at gmx.co.uk
Fri Apr 20 08:48:54 PDT 2012
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
More information about the Digitalmars-d-learn
mailing list