Re: [RFC] Introduce Abstract Syntax Tree
| From: | Christoph Becker | Date: | Fri, 15 Aug 2014 20:09:54 +0000 |
| Subject: | Re: [RFC] Introduce Abstract Syntax Tree | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-76569@lists.php.net to get a copy of this message | ||
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