Named multi-imports

Joel Nilsson via Digitalmars-d digitalmars-d at puremagic.com
Wed Aug 16 03:12:01 PDT 2017


On Tuesday, 15 August 2017 at 21:12:24 UTC, jmh530 wrote:
>
> In the past, I've thought it would be convenient to have 
> something like
>
> import io = std.stdio : writeln, write;
>
> and allow someone to write
>
> io.write("foo");
> io.writeln("bar");
>

This is already in the language: 
http://dlang.org/spec/module.html#renamed_imports


More information about the Digitalmars-d mailing list