On 21.02.2008 01:08, Sebastian wrote:
> hi,
>
> why isn't it possible to assign class constants like this:
>
> class test
> {
> const
> DIR='dirname'.DIRECTORY_SEPARATOR.'anotherdirname'.DIRECTORY_SEPARATOR;
> }Because concatenating is an expression, expressions are executed in runtime (2nd stage) and classes are declared in compile-time (1st stage). -- Wbr, Antony Dovgal -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
