Re: Relationship between -isEqual and -hash
Re: Relationship between -isEqual and -hash
- Subject: Re: Relationship between -isEqual and -hash
- From: Rosyna <email@hidden>
- Date: Sun, 21 Jan 2007 03:23:47 -0700
Hashes are used to determine inequality, not equality. If two objects
have different hashes, they are not equal. If two objects have the
same hashes then other, more compute intensive tests can be run to
determine equality.
Resume the opera!
Ack, at 1/19/07, Jeffrey J. Early said:
If two objects are equal (as determined by the isEqual: method),
they must have the same hash value.
My question is whether the reverse must also hold?
--
Sincerely,
Rosyna Keller
Technical Support/Carbon troll/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden