[Issue 2529] 'package' access qualifier should allow access to sub-packages

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 6 07:15:47 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=2529



--- Comment #4 from Don <clugdbug at yahoo.com.au> 2010-08-06 07:15:42 PDT ---
Having thought about this a bit more, I think that a much better approach would
be a property applied to module declaration.

@internal
module cleverdb.mysql.funkystuff;

The property would mean, this module can only be imported from modules in
cleverdb.*

Then, everything in that module could be made public to the hierarchy, without
exposing it to the whole world. Thus, some level of encapsulation would be
preserved.

That's not an actual proposal, the point is just that closing this bug would
not mean that the original use case would never be addressed: there are other
possible solutions without changing the meaning of 'package'.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list