Extending D's support for object-oriented design with private(this)
Dom DiSc
dominikus at scherkl.de
Sun May 5 10:20:23 UTC 2024
On Sunday, 5 May 2024 at 00:27:55 UTC, NotYouAgain wrote:
> https://wiki.dlang.org/DIP22
>
> I assure everyone, the person that raised that DIP is not me.
This DIP has nothing to do with class private. It's about the
symbol visibility *from other modules*. It suggests that you
should be able to have a public symbol with the same name as a
private one and the compiler not complaining about it, because
the private one should not even be visible to the other module,
not only not accessible.
And I think, this has meanwhile been implemented (at least partly
- it's still possible to find them using AllMembers).
I suggest reading a text before citing it.
More information about the dip.ideas
mailing list