Sealed classes - would you want them in D? (v2)

KingJoffrey KingJoffrey at KingJoffrey.com
Sat May 19 09:49:39 UTC 2018


On Saturday, 19 May 2018 at 09:37:56 UTC, Uknown wrote:
>
> The point was encapsulation as you defined it was broken. 
> private members were directly modified outside their class. In 
> your words, everyone was a friend.

This is why we have coding standards ;-)

https://www.nccgroup.trust/globalassets/our-research/us/whitepapers/2017/april/accessing-private-fields-outside-of-classes-in-java.pdf



More information about the Digitalmars-d mailing list