Last update January 22, 2007

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


FrontPage | News | TestPage | MessageBoard | Search | Contributors | Folders | Index | Help | Preferences | Edit

Edit text of this page (date of last change: January 22, 2007 22:43 (diff))