• 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: Karl Goiser <email@hidden>
  • Date: Tue, 10 Jun 2003 07:08:30 +1000

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

I remember from 'years ago ' that some people even #defined C to look like Pascal! Probably some sort of protest... They ended up with _all sorts of problems_ (tm)!

However, John's #defines above seem logical to me - I might adopt them too - thanks John!


Maybe a way of getting around the invisibility of these 'language definitions' might be to paste them into the beginning of each .m file. That way they are always explicit and searchable for new people coming to the code?


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

References: 
 >Re: C question for you old guys ;-) (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: PPP Control
  • Next by Date: openURL Question
  • Previous by thread: Re: C question for you old guys ;-)
  • Next by thread: Re: C question for you old guys ;-)
  • Index(es):
    • Date
    • Thread