D - "friends"
- der_held (1/1) Jan 30 2004 What about "friend" like in C++?
- Stephan Wienczny (2/5) Jan 30 2004 The docs say that you don't such! You have modules!
- Vathix (12/13) Jan 30 2004 You can access private data within the same module.
- Lars Ivar Igesund (3/7) Jan 30 2004 A sign of good design! Good job :)
der_held wrote:What about "friend" like in C++?The docs say that you don't such! You have modules!
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