[Issue 1853] New: opCmp documentation really needs some examples
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Feb 19 23:59:11 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1853
Summary: opCmp documentation really needs some examples
Product: D
Version: 1.027
Platform: PC
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: www.digitalmars.com
AssignedTo: bugzilla at digitalmars.com
ReportedBy: wbaxter at gmail.com
The opCmp section really could use a struct example (and maybe a class example
too).
http://www.digitalmars.com/d/1.0/operatoroverloading.html
It's not entirely obvious from the description given how you're supposed to
write one, especially for a struct. I put an example on the comments page.
Feel free to copy it:
http://www.prowiki.org/wiki4d/wiki.cgi?DocComments/OperatorOverloading#section4
--
More information about the Digitalmars-d-bugs
mailing list