[dmd-beta] D2 2.058 beta

Walter Bright walter at digitalmars.com
Thu Feb 9 12:35:36 PST 2012



On 2/9/2012 11:37 AM, Sönke Ludwig wrote:
>
> ---
> module a;
> private import std = b;
> ---
> ---
> module b;
> private import std.stdio;
> void f(){ std.stdio.writefln("X"); } // conflict
> ---
> So here the "b" import and its alias "std" in a is, or should be, private, as 
> well as the std.stdio import in module b. I don't see why two private import 
> statements should influence each other in an ideal world.
>

The example doesn't make sense. Where is module a imported by module b?


More information about the dmd-beta mailing list