[dmd-beta] Time for a new beta?
Jonathan M Davis
jmdavisProg at gmx.com
Sun Aug 21 01:36:34 PDT 2011
On Sunday, August 21, 2011 10:16:42 Christian Kamm wrote:
> On Sunday 21 August 2011 09:36 Rainer Schuetze wrote:
> > I've used a combination of selective imports
>
> Be careful with that
>
> private import m : a;
>
> is the same as
>
> private import m;
> alias m.a a;
>
> atm. Meaning that if you import that file, m.a will be visible as a from the
> outside.
All imports are private unless marked public, so there's no need for the
private there. But selective imports _are_ buggy at the moment.
http://d.puremagic.com/issues/show_bug.cgi?id=5161
But it's worse that it creating a public alias. A don't believe that a public
alias will conflict with what it's an alias for. However, selective imports
currently create whole new symbols, so they _do_ conflict. Hopefully, the issue
gets fixed soon.
- Jonathan M Davis
More information about the dmd-beta
mailing list