Friend class and methods

Ali Çehreli acehreli at yahoo.com
Wed Jun 12 13:51:57 PDT 2013


On 06/12/2013 12:12 PM, Maxime Chevalier-Boisvert wrote:
>> 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.
>
> Good enough for my needs. Thanks.

Sometimes 'package' is more suitable than 'private'.

Ali



More information about the Digitalmars-d-learn mailing list