Nikita Popov wrote:

> Yes, anything containing simple variables (like $i) will often deviate from
> the usual evaluation order due to the CV optimization. I don't touch that.
> What I've changed now is that ${a()}[b()] = c() will continue to call a, b,
> c, rather than calling c, b, a (which was what the AST implementation
> initially did). I honestly don't think that it matters, but I figured that
> it's best to stick with the more "logical" behavior as long as it's not too
> much trouble :)

Thanks for the explanation. :)

Anyway, I try to avoid relying on any particular evaluation order
between sequence points.

-- 
Christoph M. Becker


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to