Re: Re: ++ BUG?? (fwd)
| From: | Stanislav Malyshev | Date: | Sun, 26 Nov 2000 23:15:20 +0000 |
| Subject: | Re: Re: ++ BUG?? (fwd) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-39168@lists.php.net to get a copy of this message | ||
IV>> The PHP manual states "C-style ... operators". C only does the
IV>> post(inc|dec) at the end of the statement, not after the expression.
Well, what I found in standard is:
[#2] The result of the postfix ++ operator is the value of
the operand. After the result is obtained, the value of the
operand is incremented. [...] The side effect of updating the
stored value of the operand shall occur between the previous
and the next sequence point.
This does no guarantee of where this "between" happens. And PHP is not C,
anyway :)
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.106