Selective and renamed imports

Christian Kamm kamm-incasoftware at removethis.de
Mon Oct 17 07:59:45 PDT 2011


Timon Gehr wrote:
> Does
> 
> public import foo : bar;
> 
> work as expected with your pull request?

Yes. But it doesn't merge the symbol either, so if foo.bar is a function

a.d --
public import foo : bar;
void bar() {}

b.d --
import a;
// will only see the bar defined in a.d.

Maybe public selective imports should actually behave the same way as 
aliases? Alternatively it could be an error: "'bar' hides publicly imported 
symbol of the same name"



More information about the Digitalmars-d mailing list