> > > In fact the uniq problem i see, is could be a name conflict like : > > function Foo() { > // ... > } > > class Foo() { > public __create() { > // ... > } > } > > Foo(); // Instanciate the class or call the function ? > > And I think that this is a much higher cost, that we gain. If we want this functionality, then Mathieu Suen's idea is better IMHO: http://www.mail-archive.com/internals@lists.php.net/msg46764.html
eg. (new Foo())->bar() Tyrael