Module renaming ignored when also using selective import

bearophile bearophileHUGS at lycos.com
Tue Nov 4 02:27:45 PST 2008


Christian Kamm:
> > 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.

I think that's a bit confusing syntax.

Bye,
bearophile



More information about the Digitalmars-d mailing list