Would *you* get caught by this one?

Doug Gwyn gwyn at smoke.BRL.MIL
Mon Jan 16 02:37:20 AEST 1989


In article <144 at mole-end.UUCP> mat at mole-end.UUCP (Mark A Terribile) writes:
>Yes, they do.  Given that the issue isn't directly addressed in either K&R,

It most certainly is!  a op= b is the same as a = a op b except that
a is evaluated only once.  That has been the definition since before
K&R first edition, and of course the pANS doesn't change that.

Certainly, some compilers (including several versions of PCC)
got it wrong.  That may be reason to avoid this in your source
code, but it doesn't affect the definition of op=.



More information about the Comp.lang.c mailing list