home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!plains!plains.NoDak.edu!hennebry
- From: hennebry@plains.NoDak.edu (Michael J. Hennebry)
- Newsgroups: comp.lang.c
- Subject: Re: Politically Correct C (was: Re: Freedom of Speech (was: Mister Ed Nilges)
- Message-ID: <19978@plains.NoDak.edu>
- Date: 30 Aug 92 18:35:56 GMT
- References: <1992Aug27.212216.18631@Princeton.EDU> <27AUG199222080334@zeus.tamu.edu> <1992Aug28.150040.21463@Princeton.EDU>
- Sender: Unknown@plains.NoDak.edu
- Distribution: usa
- Organization: North Dakota Higher Education Computing Network
- Lines: 23
- Nntp-Posting-Host: plains.nodak.edu
-
- 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
-
- peon.c:
-
- if( !farkle ) {
- fprintf(stderr, "Surprise. ( !farkle ) =/= ( !(farkle) )\n");
- }
- --
- Mike hennebry@plains.NoDak.edu
- "I still thing it's garbage, but beautifully cooked." -- TP on TP
-