Namespace resolution
| From: | Sam Barrow | Date: | Mon, 10 Dec 2007 21:48:16 +0000 |
| Subject: | Namespace resolution | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-33916@lists.php.net to get a copy of this message | ||
Ok, it's supposed to be this way right? If i define a custom class in
the global namespace called "myClass" and I'm in another namespace, I
can only access it using ::myClass, not just myClass (without the
colons)? Seems to me that it should check the local namespace and then
the global, but it only checks the globl if i specifically tell it to
with the preceding "::".