Path: utzoo!attcan!uunet!husc6!bloom-beacon!gatech!uflorida!haven!ncifcrf!nlm-mcs!adm!smoke!gwyn From: gwyn@smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: Unnecessary Macros (was Re: Unnecessary Parenthesis) Message-ID: <8590@smoke.ARPA> Date: 3 Oct 88 03:22:46 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> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 11 In article <8078@haddock.ima.isc.com> karl@haddock.ima.isc.com (Karl Heuer) writes: > z = square(*p++) + square(getchar()); >I dislike the original macro, but the fact remains that there is no good way >to write this in C. One wonders whether this is much of a problem. (Note that the example is silly.) There have been many occasions when I've needed the sum of two squares, but I've never felt the need for the ability to define a "square" macro in order to compute that.