[Issue 19334] Derived class inheritance private members in same module

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 26 15:14:51 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=19334

--- Comment #4 from Mike Parker <aldacron at gmail.com> ---
The unit of encapsulation in D is the module. If you absolutely positively
can't live with access to private members in the same module, then keep your
classes in separate modules under the same package namespace.

--


More information about the Digitalmars-d-bugs mailing list