Re: RE: [Zend Engine 2] Re: [PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend
Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity
| From: | Jon Parise | Date: | Mon, 01 Oct 2001 16:39:11 +0000 |
| Subject: | Re: RE: [Zend Engine 2] Re: [PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity |
||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-66943@lists.php.net to get a copy of this message | ||
On Mon, Oct 01, 2001 at 06:19:01PM +0200, Harald Radi wrote:
> > > i don't either, but how else will you bind constants to a class /
> > > namespace ?
> >
> > echo Foo::CONSTANT;
>
> yes, but how do you define them ?
>
> if it's like this:
>
> namespace Foo;
> define("CONSTANT", 123);
On perhaps optionally:
define("CONSTANT", 123, 'Foo');
... which will define the constant in the namespace 'Foo'.
It might also make sense to allow:
define("Foo::CONSTANT", 123);
--
Jon Parise (jon@csh.rit.edu) . Information Technology (2001)
http://www.csh.rit.edu/~jon/ : Computer Science House
Member