discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -isEqual: equals '==' ?


From: Bissell, Tim
Subject: Re: -isEqual: equals '==' ?
Date: Mon, 20 Oct 2003 14:16:34 +0100


On Sunday, Oct 19, 2003, at 06:41 Europe/London, Richard Frith-Macdonald wrote:


On Sunday, October 19, 2003, at 06:24 AM, Yen-Ju Chen wrote:

Hi,

 Is -isEqual: the same as '==' ?

No (though it might be implemented that way for a particular class).

To clarify; == compares two pointers - if they point to the same address/object in memory they are equal, otherwise they are not. -isEqual: compares two OBJECTS for equality -you may have two NSString object instances with the same contents: "Foo" - they would return true for
'-isEqual:' but false for ==.



--------------------------------------------------------------------------------
The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express
written permission of the sender. If you are not the intended recipient, please
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender.
--------------------------------------------------------------------------------





reply via email to

[Prev in Thread] Current Thread [Next in Thread]