Doc Comments /
Rationale
Rationale
Messages
Add your comments here...
Correction
Why not name them operator+(), operator*(), etc.?
The example is wrong: the comment lines should say // overloads (a/i) and // overloads (i/a).
Correction: opAdd (not add)
Why not allow globally defined operator overload functions?
The example is wrong: the function should be opAdd instead of add.
Suggestion
Why not use operator names like __add__ and __div__ instead of add, div, etc.?
This question should be rephrased.
Links
Corresponding page in the D Specification