Module renaming ignored when also using selective import

Sebastian Lundstrom tretton at gmail.com
Tue Nov 4 01:06:20 PST 2008


Christian Kamm Wrote:

> > 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 .

Ah, my bad!
-Seb



More information about the Digitalmars-d mailing list