in reply to Re: not 'another victim of precedence' ? 'It is true' : 'the code is false'
in thread not 'another victim of precedence' ? 'It is true' : 'the code is false'
Thanks - that's a very good point and I'm glad you mentioned it. I know the word forms are lower precedence than the symbol forms, * trumps +, and four of a kind beats a full house, but I still need to consult the precedence table regularly to keep them all straight. :)
If in doubt (or to clarify the code) I'll usually either split the statement up (as friedo mentioned) or just add a set of parentheses. This time, however, I jumped to an incorrect conclusion regarding the source of the problem, and precedence didn't cross my mind until later.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: not 'another victim of precedence' ? 'It is true' : 'the code is false'
by Juerd (Abbot) on Apr 06, 2005 at 09:30 UTC |