Re: Class visibility in namespaces
| From: | Marcus Boerger | Date: | Thu, 30 Oct 2008 00:43:17 +0000 |
| Subject: | Re: Class visibility in namespaces | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-41566@lists.php.net to get a copy of this message | ||
Hello Ron,
we agreed long ago on a very easy scheme, there shall only be is-a and
public classes.
marcus
Wednesday, October 29, 2008, 9:12:30 AM, you wrote:
> Hi,
> I'm hoping I don't cause yet another flame war about the n-word ;)
> I was wondering if namespaces are going to support class visibility, and
> if no, would it be worth considering adding that feature? What I mean
> exacty is:
> In namespace Foo:
> public class Foo { }
> protected class Bar { }
> - Bar can be instantiated from any class (or function) within the
> namespace Foo
> Outside of namespace Foo:
> - class Foo in namespace Foo can be instantiated
> - class Bar in namespace Foo can't be instantiated
> Ron
Best regards,
Marcus