• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: C question for you old guys ;-)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C question for you old guys ;-)


  • Subject: Re: C question for you old guys ;-)
  • From: Andy Lee <email@hidden>
  • Date: Wed, 11 Jun 2003 11:48:54 -0400

At 11:43 AM -0700 6/9/03, John C. Randolph wrote:
When I write

#define is ==
#define and &&
#define or ||
#define until(a) while(!(a))


Out of curiosity -- do you also use...

#define not !

...? I find the difference between...

if ([something doesSomethingWith:somethingElse])

...and...

if (![something doesSomethingWith:somethingElse])

...harder to spot than the difference between = and ==, though I suppose I could get into the habit of surrounding the ! with spaces:

if ( ! [something doesSomethingWith:somethingElse])

--Andy
_______________________________________________
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.

  • Follow-Ups:
    • Re: C question for you old guys ;-)
      • From: Raymond Fischer <email@hidden>
    • Re: C question for you old guys ;-)
      • From: Jeff Harrell <email@hidden>
    • Re: C question for you old guys ;-)
      • From: "John C. Randolph" <email@hidden>
References: 
 >Re: C question for you old guys ;-) (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: C question for you old guys ;-)
  • Next by Date: NSView minimum size
  • Previous by thread: Re: C question for you old guys ;-)
  • Next by thread: Re: C question for you old guys ;-)
  • Index(es):
    • Date
    • Thread