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.
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.