[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

2001-10-01 Thread Stig Sæther Bakken
[Zeev Suraski <[EMAIL PROTECTED]>] > At 17:16 01-10-01, Chuck Hagenbuch wrote: > >Quoting Andrei Zmievski <[EMAIL PROTECTED]>: > > > > > I step away from the computer for the weekend, and such an > > > interesting discussion ensues. For the record, I'd vote for either > > > unifying classes and n

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

2001-10-01 Thread Jon Parise
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 p

[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

2001-10-01 Thread Andrei Zmievski
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 wa

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

2001-10-01 Thread Harald Radi
> > 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) a

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

2001-10-01 Thread Andrei Zmievski
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

[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

2001-10-01 Thread Andrei Zmievski
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 hav

[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

2001-10-01 Thread Harald Radi
> I'm sorry, I haven't been following all of this - is 'final' > a keyword that > will be available (and enforced) in ze2? i don't either, but how else will you bind constants to a class / namespace ? -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTEC

[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

2001-10-01 Thread Chuck Hagenbuch
Quoting Harald Radi <[EMAIL PROTECTED]>: > > And we need namespaces for > > constants, also. > > why ? > > > class Foo { > final $BAR = "blah"; > } I'm sorry, I haven't been following all of this - is 'final' a keyword that will be available (and enforced) in ze2? -chuck

[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

2001-10-01 Thread Harald Radi
> We don't have static members. but we will in ze2 !? > And we need namespaces for > constants, also. 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 "

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

2001-10-01 Thread Chuck Hagenbuch
Quoting Harald Radi <[EMAIL PROTECTED]>: > is there a reason why a namespace should contain anything other than classes ? > we have static functions and static members in classes, no need for them > in namespaces too. We don't have static members. And we need namespaces for constants, also

[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

2001-10-01 Thread Harald Radi
> It would mean we'd need to have nested classes. or limit namespaces to only contain classes: <...>method(); is there a reason why a namespace should contain anything other than classes ? we have static functions and static members in classes, no need for them in namespaces too. we ca