Friend class and methods

Adam D. Ruppe destructionator at gmail.com
Wed Jun 12 12:03:00 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++?

The closest is to put both classes and the function in the same 
module. Things all in the same module can see the private members 
of each other.



More information about the Digitalmars-d-learn mailing list