Christian Kamm Wrote: > 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"
afaik currently all imports include symbols into the importing module. --- a.d --- int z; --- b.d --- import a; a.z is available as b.z now.