`restricted` member variables

deadalnix deadalnix at gmail.com
Tue Jun 21 12:33:13 UTC 2022


On Tuesday, 21 June 2022 at 11:06:17 UTC, bauss wrote:
> D will do anything to not have class private.

To the contrary, it doesn't have that today and is doing nothing.

If you want it to do something, you need to justify that it is 
worth doing.

So far, all we got is "This is mandatory as per my definition of 
OOP", which is not a convincing argument.

This is especially not convincing because many people here have 
been using D for many years, and most of them had a "hu, that's 
weird" moment when they figured out how private was working. And 
then figured out that the current behavior is actually much more 
useful in practice.



More information about the Digitalmars-d mailing list