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.

Reply via email to