Module renaming ignored when also using selective import

Christian Kamm kamm-incasoftware at removethis.de
Mon Nov 3 22:54:23 PST 2008


> import mystdout = tango.io.Stdout : Stdout;
> void main()
> {
> Stdout("Should require mystdout prefix?");
> }

No, this behaves as specified: you get Stdout from the selective import and
tango.io.Stdout as mystdout from the rename. See 'Renamed and Selective
Imports' in
http://www.digitalmars.com/d/1.0/module.html#ImportDeclaration .



More information about the Digitalmars-d mailing list