Focus

eles eles at eles.com
Mon Jan 21 04:55:35 PST 2013


On Saturday, 19 January 2013 at 01:35:58 UTC, Walter Bright wrote:
> On 1/18/2013 4:55 PM, Andrey wrote:
> This all falls apart once you decide you need "friend" access.

What is wrong with this POV is that the original class no longer 
has a word to say if she wants to be friended by someone.

In C++ the class has a word to say: if it does not declare: "hey! 
you will be my friend!", then nobody can come there to say: "hey! 
I consider myself your friend (even if you don't want it), so I 
will mess up your internal state!"



More information about the Digitalmars-d mailing list