Re: C question for you old guys ;-)
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.