Re: multiple definitions of compare: -- design flaw?
Re: multiple definitions of compare: -- design flaw?
- Subject: Re: multiple definitions of compare: -- design flaw?
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 11 Jul 2003 06:31:09 -0400
on 03-07-10 11:34 AM, Brent Gulanowski at email@hidden wrote:
>
-compare: is implemented by NSString, NSNumber, and NSDate. That's
>
great, except they each define the argument using their own class,
>
instead of id. So if you call -compare:, you are guaranteed to get
>
complaints from the compiler (and if you have -Wall set, you can't
>
compile at all).
This complaint has been in the mailing list archives for more than two
years. Knowledgeable people seem to feel it is an error, but I see no sign
in the archives that anybody has actually reported it as a bug. Perhaps it's
too late to fix it and maintain backward compatibility.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.