DIP16: Transparently substitute module with package
Nick Sabalausky
a at a.a
Fri Mar 30 23:41:31 PDT 2012
"Chris NS" <ibisbasenji at gmail.com> wrote in message
news:ugopmohijjcnnrchuwbe at forum.dlang.org...
> I'm pretty impressed with the idea, and look forward to its
> implementation, but I do have one question. How does this affect (if at
> all) the implicit "friend" relationship of declarations? Since package
> "foo.bar" is treated as a single module, do the classes in
> "foo/bar/alpha.d" and "foo/bar/beta.d" have access to each other's private
> members?
>
> I'm not sure whether I favor them losing or keeping their "friend" status.
>
There's always the "package" access specifier.
More information about the Digitalmars-d
mailing list