[Issue 2529] 'package' access qualifier should allow access to sub-packages
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 15 16:56:38 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2529
------- Comment #2 from daniel.keep+d.puremagic.com at gmail.com 2009-03-15 18:56 -------
(In reply to comment #1)
Perhaps we need two changes to the current behaviour:
1. package access applies to sub-packages as well.
2. The package protection attribute accepts an optional argument which
specifies the base package which has access. In Don's example:
module database.internal.sqlparsing;
package(database) void foo();
This would allow anything under the database package access to foo.
--
More information about the Digitalmars-d-bugs
mailing list