Need review: explicit package protection

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 8 14:47:55 PDT 2014


On Sunday, 8 June 2014 at 16:27:12 UTC, Joseph Rushton Wakeling 
via Digitalmars-d wrote:
> Is it possible to permit multiple packages access in this way?  
> For example,
>
>     package(std.math, std.random) void foo() { ... }

Of course it is possible but I don't think it is a good project 
structure to encourage. If these modules are so closely related 
they should be moved to single math-n-stuff package.


More information about the Digitalmars-d mailing list