Re: PHP5 Packages
| From: | Zeev Suraski | Date: | Tue, 09 Jul 2002 15:05:06 +0000 |
| Subject: | Re: PHP5 Packages | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-85861@lists.php.net to get a copy of this message | ||
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