At 06:53 PM 7/9/2002, Andre Gildemeister wrote: >hi, > >in PHP5 it shall be possible to integrate own extensions (written in PHP), >called "Packages". a package consists of functions and classes, >encapsulated in >an namespace. to make the package-elements available in an program, the >package >must still integrate in the source code. >for a while I heard about keywords: import, use or share to integrated the >packages...
Is that a statement or a question? :) Basically, the Zend Engine 2 will allow the use of nested classes. So, classes will be able to contain other classes, as well as constants in addition to variables and methods. They are not called packages. Currently there aren't any new keywords for loading such classes, because essentially, they're just like the existing classes (will be used using include/require). There's an import statement that's going to help users bring methods from classes (or nested classes) to the global scope. Zeev -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php