RE: [PHP-DEV] constant folding optimization
| From: | Dmitry Stogov | Date: | Mon, 10 Sep 2007 11:08:52 +0000 |
| Subject: | RE: [PHP-DEV] constant folding optimization | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32172@lists.php.net to get a copy of this message | ||
Now we support "const FOO = BAR;" where BAR is another constant (but BAR is
also a simple expression).
I don't see how can we support constant expressions and don't support
constants in them.
Thanks. Dmitry.
> -----Original Message-----
> From: Stanislav Malyshev [mailto:stas@zend.com]
> Sent: Monday, September 10, 2007 12:17 PM
> To: Dmitry Stogov
> Cc: 'Nuno Lopes'; internals@lists.php.net; andi@php.net
> Subject: Re: [PHP-DEV] constant folding optimization
>
>
> > In case we support constant expressions, we should support
> constants
> > in such expressions, but the values of these constants may
> be unknown
> > in compile time.
>
> I don't see why we should support constants in such expressions.
> --
> Stanislav Malyshev, Zend Software Architect
> stas@zend.com http://www.zend.com/
> (408)253-8829 MSN: stas@zend.com
>