Your earlier statement that behaviour is "undefined" is also incorrect. Only the order of evaluation is undefined.
What is known about:
is that both sides will be evaluated before the addition. What is not defined is whether $a or $b will be evaluated first.$a + $b
In my example it doesn't matter, but if both terms use and alter the same variables then there can be side effects between the terms.
In reply to Re: Re: Auto-increment frenzy
by rir
in thread Auto-increment frenzy
by Dist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |