10-18-2008, 02:54 PM
|
#2 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
Hmm tis an interesting problem, the only ways I can think of is to:
A: not allow functions inside a namespace but not in a class.
B: change the character to access namespaces.
C: Not allow you to name classes with the same names as namespaces.
From the sounds of it with current PHP 5.3.0 implementation of namespaces the only way to successfully call the static is to instantiate the class and call the static like:
PHP Code:
$p = Test(); $p->Talk();
otherwise it will call the function inside the Test namespace.
or perhaps use reflection?
PHP Code:
$p = new ReflectionMethod('Test', 'Talk'); $p->invoke(NULL);
Will be interesting to se how they resolve it.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
Last edited by sketchMedia : 10-18-2008 at 07:01 PM.
Reason: speeeeling
|
|
|
|