Re: Constant and expression ?

From: Date: Wed, 19 May 2010 09:03:49 +0000
Subject: Re: Constant and expression ?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-48340@lists.php.net to get a copy of this message
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.hardy@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

« previous php.internals (#48340) next »