Re: == nil vs. isEqual:nil
Re: == nil vs. isEqual:nil
- Subject: Re: == nil vs. isEqual:nil
- From: Luc Heinrich <email@hidden>
- Date: Thu, 16 Aug 2001 21:33:09 +0200
On Thursday, August 16, 2001, at 07:49 , Jonathan Hendry wrote:
On the other hand, if you accidentally type "if (anObject = nil)" then
you get no compiler warning and anObject gets set to nil.
Not true. Some (good) compilers *do* issue a 'possible unwanted
assignment' warning in this kind of situation. Metrowerks CodeWarrior
does, for example, and GCC does not, as another example.
Take your conclusions... :-)
--
Luc - email@hidden