In message <19990129204521.a73...@znh.org> Zach Heilig writes: : On Fri, Jan 29, 1999 at 11:02:48AM -0700, Warner Losh wrote: : > Yes. I agree with that. : > if (a | b & c % d ^ e) : > should have been written as: : > if (((a | (b & (c % d))) ^ e) != 0) : : I don't know why I'm getting into this, but to prove the point that this : expression takes careful thought, it is: : (a | ((b & (c % d)) ^ e)) : (^ is higher precedence than | , according to /usr/share/misc/operator).
You see my point exactly. The explicit parens are what is intended in this example. How easy it is to get it wrong and how hard it is to prove to be right when things get that mixed up and crazy :-) Warner To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message