Friend class and methods

David Nadlinger code at klickverbot.at
Wed Jun 12 12:02:47 PDT 2013


On Wednesday, 12 June 2013 at 19:01:24 UTC, Maxime 
Chevalier-Boisvert wrote:
> Does D have something like the concept of friend classes and 
> functions in C++? I'd like to have a function that can access 
> private members of two classes at the same time.

No (t really), you have to stick the two classes into the same 
module.

David


More information about the Digitalmars-d-learn mailing list