Nested public imports - bug or feature?

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Thu Aug 13 09:22:03 PDT 2015


On Thursday, 13 August 2015 at 16:19:29 UTC, Jonathan M Davis 
wrote:
> You can get that behavior with static imports in D, but having 
> to use the whole import path while referencing symbols gets 
> ugly fast.

Check example again, you are only required to use the plain 
module name, not fully qualified one. With D syntax:

import std.stdio;

writeln(); // not good
stdio.writeln(); // good
std.stdio.writeln(); // also good, but not required


More information about the Digitalmars-d mailing list