Article View: comp.lang.misc
Article #429Re: What I'd really like to see in an if-statement...
From: Tom Neff
Date: Wed, 09 Aug 1989 00:09
Date: Wed, 09 Aug 1989 00:09
11 lines
724 bytes
724 bytes
The obvious drawback to defining 'triadc' as a macro
#define triadc(a,o1,b,o2,c) ((a o1 b) && (b o2 c))
is side effects, e.g.
if (triadc(' ', *cp++, '_'))
do_the(wrong, thing); /* :-) */
--
"We walked on the moon -- (( Tom Neff
you be polite" )) tneff@bfmny0.UU.NET
Technical Details
Message-ID:
<14530@bfmny0.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!att!pacbell!ames!indri!uakari.primate.wisc.edu!csd4.milw.wisc.edu!cs.utexas.edu!uunet!bfmny0!tneffReferences:
<8577@batcomputer.tn.cornell.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!att!pacbell!ames!indri!uakari.primate.wisc.edu!csd4.milw.wisc.edu!cs.utexas.edu!uunet!bfmny0!tneff From: tneff@bfmny0.UUCP (Tom Neff) Newsgroups: comp.lang.misc Subject: Re: What I'd really like to see in an if-statement... Message-ID: <14530@bfmny0.UUCP> Date: 9 Aug 89 00:09:30 GMT References: <8577@batcomputer.tn.cornell.edu> Reply-To: tneff@bfmny0.UUCP (Tom Neff) Organization: ^ Lines: 11