Path: utzoo!attcan!uunet!husc6!mailrus!ukma!tut.cis.ohio-state.edu!accelerator.eng.ohio-state.edu!kaa.eng.ohio-state.edu!rob From: rob@kaa.eng.ohio-state.edu (Rob Carriere) Newsgroups: comp.lang.c Subject: Re: Unnecessary Macros (was Re: Unnecessary Parenthesis) Message-ID: <701@accelerator.eng.ohio-state.edu> Date: 3 Oct 88 18:30:54 GMT References: <2089@ssc-vax.UUCP> <441@kaon.uchicago.edu> <1401@devsys.oakhill.UUCP> <23@datcon.UUCP> <8577@smoke.ARPA> <8078@haddock.ima.isc.com> <8590@smoke.ARPA> Sender: news@accelerator.eng.ohio-state.edu Reply-To: rob@kaa.eng.ohio-state.edu (Rob Carriere) Organization: Ohio State Univ, College of Engineering Lines: 20 In article <8590@smoke.ARPA> gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) writes: >One wonders whether [the inability to define a square macro] is much of a >problem. How about the following, deep in some inner loop: foo = square( sin( x )) + 1.7; I *don't* want to write: foo = sin( x )*sin( x ) + 1.7; and temp = sin( x ); foo = temp*temp + 1.7; is clearly less legible. Rob Carriere