Re: C question for you old guys ;-)
Re: C question for you old guys ;-)
- Subject: Re: C question for you old guys ;-)
- From: Jay Vaughan <email@hidden>
- Date: Thu, 12 Jun 2003 00:17:14 +0200
though I think we can all agree that this is far less an abomination than :
#define IF if (
#define THEN )
#define ELSE else
#define BEGIN {
#define END }
etc...
(which I still remember being touted as a "great" thing to help
people move from Pascal to C in a Byte article years back).
You wanna see macro loopiness at its worst?
Source code to the bash shell:
http://minnie.tuhs.org/UnixTree/V7/usr/src/cmd/sh/cmd.c.html
Yes, that is supposed to be C code for a production system. Sick, I
tell you, sick!
The macros:
http://minnie.tuhs.org/UnixTree/V7/usr/src/cmd/sh/mac.h.html
I dunno why I didn't hunt this down and point it out as a bad example
of macro hackery earlier ... would've saved raising jcr's ire, and
probably saved me from a few pointed jabs as well, eh?!
:)
--
;
Jay Vaughan
r&d>>music:technology:synthesizers - www.access-music.de/
_______________________________________________
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.