Re: [PHP-DEV] [RFC] Introduce Abstract Syntax Tree

[email protected] (Christoph Becker)
Newsgroups php.internals
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.