<div dir="ltr">2013/7/30 Dicebot <span dir="ltr"><<a href="mailto:public@dicebot.lv" target="_blank">public@dicebot.lv</a>></span><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im">On Tuesday, 30 July 2013 at 12:29:00 UTC, Daniel Murphy wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Please file a bug report: <a href="http://d.puremagic.com/issues/" target="_blank">http://d.puremagic.com/issues/</a><br>
</blockquote>
<br></div>
I don't think it is a bug, enhancement request for error message at most.<br>
</blockquote></div><br></div><div class="gmail_extra">Currently selective import *implicitly* creates alias declaration for each picked up names, and two equivalent selective import will make two alias declarations implicitly, then they conflict each other.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">import std.conv : to;</div><div class="gmail_extra">import std.conv : to;</div><div class="gmail_extra"><br></div><div class="gmail_extra">is mostly same as:</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">import std.conv;</div><div class="gmail_extra">alias to = <a href="http://std.conv.to">std.conv.to</a>;</div><div class="gmail_extra">alias to = <a href="http://std.conv.to">std.conv.to</a>; // conflict with the first alias<br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">I think it's a not good compiler implementation detail and unnecessary intrusive behavior.</div><div class="gmail_extra">Now I'm proposing to fix import mechanism in here.</div>
<div class="gmail_extra"><a href="https://github.com/D-Programming-Language/dmd/pull/2256">https://github.com/D-Programming-Language/dmd/pull/2256</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Kenji Hara</div>
</div>