home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!ncar!noao!amethyst!organpipe.uug.arizona.edu!news
- From: dave@cs.arizona.edu (Dave Schaumann)
- Newsgroups: comp.lang.c
- Subject: Re: Politically Correct C (was: Re: Freedom of Speech (was: Mister Ed Nilges)
- Message-ID: <1992Aug30.233605.27709@organpipe.uug.arizona.edu>
- Date: 30 Aug 92 23:36:05 GMT
- References: <1992Aug27.212216.18631@Princeton.EDU> <27AUG199222080334@zeus.tamu.edu> <1992Aug28.150040.21463@Princeton.EDU> <19978@plains.NoDak.edu>
- Sender: news@organpipe.uug.arizona.edu
- Reply-To: dave@cs.arizona.edu (Dave Schaumann)
- Distribution: usa
- Organization: University of Arizona
- Lines: 26
- In-Reply-To: hennebry@plains.NoDak.edu (Michael J. Hennebry)
-
- In article <19978@plains.NoDak.edu>, hennebry@plains (Michael J. Hennebry) writes:
- >In article <1992Aug28.150040.21463@Princeton.EDU> egnilges@phoenix.Princeton.EDU (Ed Nilges) writes:
- >>but it is inexcusable to code
- >
- >> if (!(farkle))
- >
- >>since it is obvious even to the tyro that the "scope" of the not
- >>operator ! is "farkle" (what else COULD it be??)
- >
- >Without the "extra" parentheses it could be "fire" as in the following
- >example:
- >
- >boss.h: /* immutable if peon wants to keep his job */
- >
- >#define farkle fire || flood
-
- This #define is broken. Period. The right place to put parens is around
- the macro definition, not everywhere it is expanded.
-
- If you've got a boss that won't let you change broken header files, you
- might consider sprucing up your resume, and checking around, because
- chances are good s/hes got other obnoxious habits as well.
-
- --
- Essentia non sunt multiplicanda praeter necessitatum -- William of Ockham
- (Fact need not be multiplied beyond necessity)
-