Re: C question for you old guys ;-)
Re: C question for you old guys ;-)
- Subject: Re: C question for you old guys ;-)
- From: Jim Correia <email@hidden>
- Date: Mon, 9 Jun 2003 18:10:49 -0400
On Monday, June 9, 2003, at 05:50 PM, John C. Randolph wrote:
On Monday, June 9, 2003, at 02:21 PM, Rob Kuilman wrote:
thereby, as i said before, i find 'is' a lot harder to read than '=='
:-)
The question is how easily you can spot a '=' that's meant to be a
'=='. I've seen people stare at a bug like that for a long time
before they realized it.
Then why not turn on the warning that will catch them?
The Metrowerks compilers have a warning that tells you about possible
unwanted assignments. GCC's -Wparentheses does something similar.
Jim
_______________________________________________
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.