Preparing for the New DIP Process

Dom DiSc dominikus at scherkl.de
Sun Jan 21 12:17:28 UTC 2024


On Sunday, 21 January 2024 at 11:51:59 UTC, zjh wrote:
> When you need `friend`, You can put them all in one module.

Jup. But putting things in one module won't do anymore if you use 
class-private. That's why people using it will soon realize they 
need friends. But friends are a security hole, rendering private 
completely useless at all.

So adding class-private without friends is an incomplete feature, 
that will make nobody happy. But class-private with friends is a 
misfeature.
Ergo: do not add class-private at all!
All that's possible with class-private is also possible with 
module-private. But module-private don't has the friends-issue. 
Everything is good - you only need to realize that.


More information about the Digitalmars-d-announce mailing list