D Language Renamed imports


A local name for an import can be given, through which all references to the module's symbols must be qualified with:

import io = std.stdio; 
void main()
    io.writeln("Hello world");
    std.stdio.writeln("hello!"); // error, std is undefined
    writeln("hello!");           // error, writeln is undefined

Renamed imports are handy when dealing with very long import names.