Re: [PHP-DEV] Namespace Question - Simple

2008-09-26 Thread Nathan Rixham
Richard Quadling wrote: 2008/9/26 Nathan Rixham <[EMAIL PROTECTED]>: Hi All, Can anybody answer the following question for me please. Why not follow (exactly) Java's strong static package/namespace system rather than a home grown dynamic namespace system? It works, it's common, logical, robus

Re: [PHP-DEV] Namespace Question - Simple

2008-09-26 Thread Richard Quadling
2008/9/26 Nathan Rixham <[EMAIL PROTECTED]>: > Hi All, > > Can anybody answer the following question for me please. > > Why not follow (exactly) Java's strong static package/namespace system > rather than a home grown dynamic namespace system? > > It works, it's common, logical, robust, a working m

[PHP-DEV] Namespace Question - Simple

2008-09-26 Thread Nathan Rixham
Hi All, Can anybody answer the following question for me please. Why not follow (exactly) Java's strong static package/namespace system rather than a home grown dynamic namespace system? It works, it's common, logical, robust, a working model to follow, and ties in well with the PHP on Java

Re: [PHP-DEV] Namespace question

2007-08-22 Thread David Coallier
D] On Behalf Of David Coallier > > Sent: Friday, August 17, 2007 8:24 PM > > To: PHP Internals List > > Subject: [PHP-DEV] Namespace question > > > > > > Hey guys, looking at the minutes meeting from the paris conf > > (http://php.net/~derick/meeting-notes.htm

RE: [PHP-DEV] Namespace question

2007-08-21 Thread Dmitry Stogov
List > Subject: [PHP-DEV] Namespace question > > > Hey guys, looking at the minutes meeting from the paris conf > (http://php.net/~derick/meeting-notes.html), I was wondering > if " Constants in name spaces are allowed unless we find > problems with the implement

Re: [PHP-DEV] Namespace question

2007-08-17 Thread David Coallier
On 8/17/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > > So my question is: Anyone thinking in doing const for namespaces thus > > calling something like > > > > What::NAME; // echo 'booo' > > Yep, we are thinking of allowing const in namespace (and maybe even > outside, since it'd be basicall

Re: [PHP-DEV] Namespace question

2007-08-17 Thread Stanislav Malyshev
So my question is: Anyone thinking in doing const for namespaces thus calling something like What::NAME; // echo 'booo' Yep, we are thinking of allowing const in namespace (and maybe even outside, since it'd be basically the same) but we didn't arrive yet to any decision if we can implement i

Re: [PHP-DEV] Namespace question

2007-08-17 Thread David Coallier
On 8/17/07, Alexey Zakhlestin <[EMAIL PROTECTED]> wrote: > "const" keyword is currently allowed only inside class-definitions; > generic constants are specified using "define()" > I know that.. Right now you can do. --File: ns.php-- namespace What define ('NAME', 'booo'); class Tester { publ

Re: [PHP-DEV] Namespace question

2007-08-17 Thread Alexey Zakhlestin
"const" keyword is currently allowed only inside class-definitions; generic constants are specified using "define()" On 8/17/07, David Coallier <[EMAIL PROTECTED]> wrote: > Hey guys, looking at the minutes meeting from the paris conf > (http://php.net/~derick/meeting-notes.html), I was wondering i

[PHP-DEV] Namespace question

2007-08-17 Thread David Coallier
Hey guys, looking at the minutes meeting from the paris conf (http://php.net/~derick/meeting-notes.html), I was wondering if " Constants in name spaces are allowed unless we find problems with the implementation. " were implemented. I tried but putting namespace MyPackage; const NAME = 'inspace'