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] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity
On Mon, 01 Oct 2001, Harald Radi wrote: i don't either, but how else will you bind constants to a class / namespace ? echo Foo::CONSTANT; -Andrei Try to spend the next 30 seconds not thinking about a blue-eyed polar bear. -Feodor Dostoevsky -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
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] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity
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); it won't be a problem either because then a class can't contain such a definition (yet) and there won't be any ambiguities too. harald. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[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] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity
On Mon, 01 Oct 2001, Harald Radi wrote: yes, but how do you define them ? if it's like this: namespace Foo; define(CONSTANT, 123); it won't be a problem either because then a class can't contain such a definition (yet) and there won't be any ambiguities too. That's how I was thinking they would be defined. Funny, but my automated signature somehow seems relevant to this. -Andrei In this age, which believes that there is a short cut to everything, the greatest lesson to be learned is that the most difficult way is, in the long run, the easiest. -Henry Miller, The Books in My Life -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
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] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity
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 ([EMAIL PROTECTED]) . Information Technology (2001) http://www.csh.rit.edu/~jon/ : Computer Science House Member -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]