in reply to Re: Auto-increment frenzy
in thread Auto-increment frenzy
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Auto-increment frenzy
by Abigail-II (Bishop) on Aug 27, 2003 at 14:21 UTC |