namespace keyword

View: New views
2 Messages — Rating Filter:   Alert me  

namespace keyword

by Martin Scotta :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hil all

I'm a 5.2.0 user (WINXP)
I have a class like this...

Class IsThisBad
{
   const NAMESPACE = 'something';
   /* code */
   function __construct( $other=self::NAMESPACE )
   {
     /* do stuff */
   }
}

Recently the version 5.3 was released, so... should I change the const
"NAMESPACE" in the class? Is it a reserved word?

--
Martin Scotta

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: namespace keyword

by Greg Beaver-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Martin Scotta wrote:

> Hil all
>
> I'm a 5.2.0 user (WINXP)
> I have a class like this...
>
> Class IsThisBad
> {
>    const NAMESPACE = 'something';
>    /* code */
>    function __construct( $other=self::NAMESPACE )
>    {
>      /* do stuff */
>    }
> }
>
> Recently the version 5.3 was released, so... should I change the const
> "NAMESPACE" in the class? Is it a reserved word?

Yes.

Greg

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php