Why does Object.opEquals return int
Bill Baxter
wbaxter at gmail.com
Mon Nov 13 11:20:56 PST 2006
Kristian Kilpi wrote:
> On Mon, 13 Nov 2006 20:16:12 +0200, Bill Baxter <wbaxter at gmail.com> wrote:
>>
>> Personally I think Object.opCmp returning int is an oddity, but it
>>>
> (BTW, you were referring 'opCmp' instead of 'opEquals'. And yes,
Doh! you're right. I just finished reading the page on operator
overloading[1] where Walter makes the same mistake and Stewart Gordon's
correction on the associated wiki4d page[2]. So I guess opCmp was on
the brain.
Fix that page, Walter!
[1] http://www.digitalmars.com/d/operatoroverloading.html
[2] http://www.prowiki.org/wiki4d/wiki.cgi?DocComments/OperatorOverloading
--bb
More information about the Digitalmars-d
mailing list