Re: Re: towards a 5.3 release
| From: | Stanislav Malyshev | Date: | Mon, 08 Sep 2008 17:56:19 +0000 |
| Subject: | Re: Re: towards a 5.3 release | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-40357@lists.php.net to get a copy of this message | ||
Hi!
This doesn't work at all The closest you can do is <?php use Foo::Bar as F; F::myfunction; ?>That's the right way to go. If you want functions in global space, put them there. If not, then use namespace syntax. BTW, what is so bad in F::myfunction that it makes it absolutely useless?
which kind of defeats the purpose of having functions in namespaces at all, why not just use a class with static methods at this point.I didn't see a lot of use of having functions in namespaces from the start, but if you could explain what your point is - i.e. why do you want functions that are declared in namespaces and still are in the global space - I could maybe understand the concern better. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com