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: Date: Mon, 01 Oct 2001 16:07:06 +0000
Subject: 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-66936@lists.php.net to get a copy of this message
On Mon, 01 Oct 2001, Harald Radi wrote: > why ? > > > class Foo { > final $BAR = "blah"; > } > > namespace Foo; > > class Bar { > static function bar() { > echo $Foo::BAR; > } > } > > > if (Foo::Bar::bar() === $Foo::BAR) { > echo "juhuuu"; > } else { > echo "damn"; > } > > > you have classes, you have constants, you have functions, ... what more > do you want ? I don't think emulating constants with static members is a good idea. For one, it'd require introducing 'final' keyword and so on. -Andrei * I don't mind going nowhere as long as it's an interesting path. *

« previous php.dev (#66936) next »