Nested class defined in another file

bearophile bearophileHUGS at lycos.com
Mon Jun 3 15:43:20 PDT 2013


Bruno Deligny:

> Is there any "friend" like in C++ to keep them private to 
> others?

In D there is no C++ friend nor classes split as in C#. D Classes 
are supposed to be written in a single file. I have shown you a 
rough solution with import. Maybe others will give you more 
suggestions.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list