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.
In reply to Re^2: not 'another victim of precedence' ? 'It is true' : 'the code is false'
by bobf
in thread not 'another victim of precedence' ? 'It is true' : 'the code is false'
by bobf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |