Unnecessary Macros (was Re: Unnecessary Parenthesis)

Doug Gwyn gwyn at smoke.ARPA
Mon Oct 3 13:22:46 AEST 1988


In article <8078 at haddock.ima.isc.com> karl at 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.



More information about the Comp.lang.c mailing list