Focus

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Jan 19 05:12:33 PST 2013


On 1/19/13 2:35 AM, Maxim Fomin wrote:
> On Saturday, 19 January 2013 at 00:11:03 UTC, Adam D. Ruppe wrote:
>> On Saturday, 19 January 2013 at 00:04:24 UTC, Andrey wrote:
>>> So how am I supposed to hide the variable inside the struct or class?
>>
>>
>>> I'm sure "friend" explodes the basics of OOP encapsulation mechanics.
>>
>> http://www.parashift.com/c++-faq/friends-and-encap.html
>>
>> If you have helper structures it can be useful to get at the private
>> parts anyway, for example an iteration range.
>
> http://yosefk.com/c++fqa/friend.html#fqa-14.2

I think that's a rather poor piece.

Andrei


More information about the Digitalmars-d mailing list