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

Re: [PHP-DEV] Namespace question

2007-08-22 Thread David Coallier
On 8/22/07, Dmitry Stogov <[EMAIL PROTECTED]> wrote: > We are working on this feature and additional patch will be posted for > review on this week. > > Thanks. Dmitry. > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of David Coallier > > Sent: F

RE: [PHP-DEV] Namespace question

2007-08-21 Thread Dmitry Stogov
We are working on this feature and additional patch will be posted for review on this week. Thanks. Dmitry. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of David Coallier > Sent: Friday, August 17, 2007 8:24 PM > To: PHP Internals List > Subject: [

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