Focus

Maxim Fomin maxim at maxim-fomin.ru
Fri Jan 18 23:35:37 PST 2013


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

Unfortunately this applies to D in some kind of speaking.


More information about the Digitalmars-d mailing list