[dmd-beta] Time for a new beta?

Rainer Schuetze r.sagitario at gmx.de
Sun Aug 21 01:49:20 PDT 2011


On 21.08.2011 10:36, Jonathan M Davis wrote:
> 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.

Good to know, thanks. I just verified that an alias does not generate an 
conflict with the symbol it is aliased to.



More information about the dmd-beta mailing list