Adding a new design constraint to D
bauss
jj_1337 at live.dk
Tue Jun 14 10:50:56 UTC 2022
On Tuesday, 14 June 2022 at 10:21:34 UTC, The Zealot wrote:
>
> a) put the class in it's own module.
>
No you really can't and I already proved that with a couple
examples in the other discussions on this topic; there are
situations where you cannot do that, such as accessing private
fields on a parent class using a sub class type within the parent
class' module.
That's why the module-level private is a lie in D or at least
incomplete.
More information about the Digitalmars-d
mailing list