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. *

-- 
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]

Reply via email to