On 15 October 2012 16:02, Peter Alexander <span dir="ltr"><<a href="mailto:peter.alexander.au@gmail.com" target="_blank">peter.alexander.au@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Monday, 15 October 2012 at 12:43:59 UTC, Manu wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Surely this has been considered before. Any reasons it's not supported?<br>
</blockquote>
<br></div>
Yes, it has been considered before. There is an enhancement from ages ago in bugzilla.<br>
<br>
<a href="http://d.puremagic.com/issues/show_bug.cgi?id=3603" target="_blank">http://d.puremagic.com/issues/<u></u>show_bug.cgi?id=3603</a><br>
<br>
The syntax you proposed doesn't work, because it conflicts with selective imports:<br>
<br>
===[std.d]===<br>
module std;<br>
void stdio() {}<br>
<br>
===[test.d]===<br>
import std : stdio;<br>
<br>
Does that import the stdio function from module std, or the module std.stdio?<br>
<br>
You could use something like this:<br>
<br>
import std.(stdio, xml, algorithm);<br>
<br>
Of course, there's many variations (square brackets, curly braces, no dot, no commas...) but it's all bikeshedding.<br>
</blockquote></div><br><div>Awesome. Well, just throwing it out there... any mechanism by which this is possible will suit me!</div>