On Sunday, 12 June 2022 at 05:05:46 UTC, forkit wrote:


e.g. If I could something like this:

// foo_1.d
module foo_1
private int a; // a is private to module foo_1

// foo_2.d
module foo_2
private int b; // b is private to module foo_2

// foo.d
module foo[dependencies:foo_1, foo_2];
import std;
writeln a; // can call foo_1.a directly even those its private to that module writeln b; // can call foo_2.b directly even those its private to that module


Reply via email to