Fix #2529: explicit protection package #3651
Kagamin via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Wed Aug 20 00:25:43 PDT 2014
On Tuesday, 19 August 2014 at 17:11:19 UTC, Dicebot wrote:
> Any specific ideas? I can't imagine any clean solution - and
> proposed language extensions fits naturally into existing
> system without introducing any new concepts. It is also
> somewhat frequently asked about in NG.
---
module std.internal.mod1;
package(std) void foo() {}
module std.mod2;
import std.internal.mod2;
void bar() { foo(); }
---
Isn't it equivalent to
---
module std.internal_mod1;
package void foo() {}
module std.mod2;
import std.internal_mod1;
void bar() { foo(); }
---
More information about the Digitalmars-d-announce
mailing list