Re: UltraSimple Namespace Solution
| From: | Gregory Beaver | Date: | Sat, 18 Oct 2008 15:47:38 +0000 |
| Subject: | Re: UltraSimple Namespace Solution | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-41254@lists.php.net to get a copy of this message | ||
Nathan Rixham wrote:
> seen. Personally though I'd love to see stas' #1 get implemented and
> "->" used for all functions in a namespace so..
> one::step::two(); //always static method of class
> one::step->two(); //always function of namespace.
>
> But it's still ambiguous (only in a rarely though) - if an object with a
> method "two" is assigned to the static variable of a class called one
> then problem comes back.
First of all, this is not going to happen (voted down). Second of all
one::$step
is how static variables are accessed, not one::step. So there is no
potential for conflict.
Greg