Doc Comments /
Rationale
Difference (last change) (no other diffs, normal page display)
Changed: 3c3,11
== More Information = |
== Messages = Add your comments here... === Correction === |
Added: 8a17,19
=== Correction: opAdd (not add) === |
Added: 12a24,26
=== Suggestion === |
Deleted: 17d30
== Messages = |
Changed: 19c32
== Amendments = |
|
Changed: 22c35
*See the corresponding page in the D Specification: ![]() |
![]() |
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
