Nested public imports - bug or feature?

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Thu Aug 13 06:12:42 PDT 2015


Right now this works:

``D
struct Std
{
   public import std.stdio;
}

void main()
{
   Std.writeln("Nice!");
}
```

I want to use it as an import hygiene idiom but not entirely sure 
if this behavior can be relied upon (or it is just a side effect 
of imports being implemented as aliases currently).


More information about the Digitalmars-d mailing list