Re: Question about Namespace patch

From: Date: Tue, 24 Jul 2007 18:53:38 +0000
Subject: Re: Question about Namespace patch
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-31242@lists.php.net to get a copy of this message
Where I can see a huge use for namespaces is plugin-based architectures. Each plugin is its own namespace. If you have a list of plugins, then you have a list of namespaces and can iterate over that and invoke the same operation on each plugin. That would require call_user_func() and call_user_func_array() and the rest of that family to be able to handle namespaces. How would one
Since namespace is just a part of class name, I don't see any problem for call_user_func() to be able to use namespaced names. Of course, they should get full class name - if you want to use shorter ones you'd have to change something. Here we might need some functionality, but it's not clear to me yet which one. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#31242) next »