Is #define THING -10 completely safe?
Doug Gwyn
gwyn at smoke.brl.mil
Tue Jan 29 07:51:44 AEST 1991
In article <745 at caslon.cs.arizona.edu> dave at cs.arizona.edu (Dave P. Schaumann) writes:
>If Colin's interpretation is wrong, what *is* happening?
What I assumed Colin was blaming the difference on was the rewrite rule,
which is not the source of the difference. -10[p] and (-10)[p] are not
the same due to [] having higher precedence than -. Colin's is another
(this time strictly conforming) example illustrating that the parentheses
in the macro definition DO matter. If that's what he intended to say,
I apologize for misunderstanding.
More information about the Comp.lang.c
mailing list