Wait a sec... When did const become a keyword? And since when can you
initialize variables from outside a constructor/function?

Sorry to bother..

-- 
// DvDmanDT
MSN: [EMAIL PROTECTED]
Mail: [EMAIL PROTECTED]
"Zeev Suraski" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> At 14:35 22/08/2003, Arjen Brouwer wrote:
> >Should'nt this work? Currently it reports an error about a undefined
constant.
> >
> ><?
> >class Test {
> >     const FOO = 100;
> >     var $bar = FOO;
>
> Should be var $bar = Test::FOO (or self::FOO, even though it appears not
to
> work right now) - there's no implicit class/object dereference of any kind
> in PHP.
>
> Zeev
>



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

Reply via email to