I have not had time to look this in detail so I could not reach a conclusion.
Is the upcoming object model supporting package level member access retrictions like in Java?
For those that are not aware of what is that, packages are a group of independent classes (not like nested classes).
The members with package level access restriction can only be accessed from functions of classes of the same package.
It is something between protected and public. It is less restrictive than protected level because package members can be accessed from outside their classes, but is more restrictive than public because they can only be accessed from functions of classes of the same package (namespace?!?).
This is not absolutely important but is good for better organization of packages of several cooperating classes. It is often used when with packages based on the factory design pattern where there is a central class that creates objects of other classes. Usually either the factory and the created object classes provide functions and variables that are only meant to be used from inside those classes and not outside the package.
--
Regards, Manuel Lemos
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php