should protected imply package?

bearophile bearophileHUGS at lycos.com
Thu Sep 24 10:59:16 PDT 2009


Andrei Alexandrescu:

> In Java, "protected"-level protection implies package-level protection 
> (see e.g. 
> http://java.sun.com/docs/books/tutorial/java/javaOO/accesscontrol.html). 
> Should we copy that behavior in D, or take advantage of the package 
> keyword and require it as in "package protected"?

If you are interested in Java Packages you can also take a look at Java superpackages:
http://today.java.net/pub/a/today/2008/03/06/jsr-294-superpackages.html

Bye,
bearophile



More information about the Digitalmars-d mailing list