D - "friends"
- der_held <der_held_member pathlink.com> Jan 30 2004
- Stephan Wienczny <wienczny web.de> Jan 30 2004
- Vathix <vathix dprogramming.com> Jan 30 2004
- Lars Ivar Igesund <larsivar igesund.net> Jan 30 2004
der_held wrote:What about "friend" like in C++?
Jan 30 2004
der_held wrote:What about "friend" like in C++?
You can access private data within the same module. class Foo { private int bar; } void myfriend(Foo foo) { foo.bar = 1; //same module, so it's OK } I like this, however, I would assume in some situations you would need to do it from another module. I haven't needed to, yet.
Jan 30 2004
Vathix wrote:der_held wrote: I like this, however, I would assume in some situations you would need to do it from another module. I haven't needed to, yet.
A sign of good design! Good job :) Lars Ivar Igesund
Jan 30 2004









Stephan Wienczny <wienczny web.de> 