Extending D's support for object-oriented design with private(this)
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Sat Apr 27 12:41:55 UTC 2024
On 27/04/2024 9:18 PM, NotYouAgain wrote:
> so, it seems, at least 2 problems indentified in this discussion, can
> now be solved with private(this).
>
> 1 - It can (apparently) resolve an issue with synchronized classes (I'
> don't pretend to understand them)
It does not resolve them.
It enables a programmer who knows that an issue exists to prevent it.
The same programmer who wrote that module.
It could be solved by doing something like this internally and
automatically. No need for a DIP exposing this capability.
More information about the dip.ideas
mailing list