Nested class defined in another file

Flamaros flamaros.xavier at gmail.com
Tue Jun 4 15:20:44 PDT 2013


On Monday, 3 June 2013 at 22:39:39 UTC, Ali Çehreli wrote:
> On 06/03/2013 03:20 PM, Bruno Deligny wrote:
>
> > I began to separate them by hand by passing a parent
> reference but it's
> > ugly because i need to make the parent members accessible in
> public to
> > have acces. Is there any "friend" like in C++ to keep them
> private to
> > others?
>
> Have you considered the 'package' access specifier? It allows 
> access to the modules of the same package but not to others.
>
> Ali

It seems exactly what we are looking for. Thx.


More information about the Digitalmars-d-learn mailing list