Very hacky solution to class private members

Dom Disc dominikus at scherkl.de
Thu Jun 9 15:18:06 UTC 2022


On Thursday, 9 June 2022 at 11:33:08 UTC, bauss wrote:
> On Thursday, 9 June 2022 at 11:04:31 UTC, Dom Disc wrote:
> > Within D alone, we would gain nearly nothing by an additional 
> > level.
>
> I don't know why you keep mentioning C++ and how D improves 
> over C++.
Because others did and C++ is the source why the design decision 
to make module the border for encapsulation was made.

> I'm not a C++ programmer and I don't come from a C++ background.
May be. But D does come from a C and C++ background.
Also the last sentence of what you cited was explicitly NOT about 
C++ but about D only.



More information about the Digitalmars-d mailing list