A collection of DIPs
ZombineDev via Digitalmars-d
digitalmars-d at puremagic.com
Sat Sep 12 06:48:10 PDT 2015
On Wednesday, 9 September 2015 at 10:00:10 UTC, Ola Fosheim
Grøstad wrote:
> On Wednesday, 9 September 2015 at 06:13:59 UTC, Dominikus
> Dittes Scherkl wrote:
>> IMHO "friend" is a misconception, that is only there to
>> compensate for the lack of modules in C++.
>
> It can be useful. Say you have a database engine module and an
> ORM module, you might want to give the ORM special privileges
> to certain parts of the database engine, but shield it from the
> rest of the program.
That's what the `package` access modifier is for.
More information about the Digitalmars-d
mailing list