Re: C question for you old guys ;-)
Re: C question for you old guys ;-)
- Subject: Re: C question for you old guys ;-)
- From: Eric Wang <email@hidden>
- Date: Mon, 09 Jun 2003 15:52:18 -0400
on 6/9/03 12:49 PM, John C. Randolph at email@hidden wrote:
>
#define is ==
>
>
if (spriteInfo is NULL)
>
>
.. ever since I started doing this, I've never assigned when I meant to
>
compare.
>
>
-jcr
Thanks, that's a great tip! Much more readable than putting the constant on
the left-hand side of the equality test.
Eric Wang
_______________________________________________
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.