[Issue 1120] New: old doc need updates: func sig changed to use anchored type
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 10 15:54:10 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1120
Summary: old doc need updates: func sig changed to use anchored
type
Product: D
Version: unspecified
Platform: PC
URL: http://digitalmars.com/d/operatoroverloading.html
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: www.digitalmars.com
AssignedTo: bugzilla at digitalmars.com
ReportedBy: someanon at yahoo.com
Great improvement by introducing anchored type! thanks Walter!
Please also update the doc, (I tried, it works)
old doc:
int opCmp(Object o);
should be changed to:
int opCmp(typeof(this) o);
By default opCmp(anchored typed) is called; if it doesn't exist, then
opCmp(Object o) is called.
Same for opEquals.
--
More information about the Digitalmars-d-bugs
mailing list