AFAIK class constants are optimized for speed and therefore don't
support expressions; don't expect this to change any time soon ;-)

On Wed, May 19, 2010 at 4:54 PM, Frederic Hardy
<frederic.ha...@mageekbox.net> wrote:
> Hello !
>
> Is there any feature request about constant and expression ?
> I would like to write something like that :
>
> <?php
>
> namespace foo\bar\directories {
>    const tmp = __DIR__ . '/tmp';
> }
>
> ?>
>
> Best regards,
> Fred.
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
--
Tjerk

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

Reply via email to