isn't that what DIP37 is supposed to address?<br><br><div class="gmail_quote">On Wed, Jun 5, 2013 at 12:47 PM, H. S. Teoh <span dir="ltr"><<a href="mailto:hsteoh@quickfur.ath.cx" target="_blank">hsteoh@quickfur.ath.cx</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, Jun 05, 2013 at 03:44:30PM -0400, Andrei Alexandrescu wrote:<br>
> On 6/5/13 3:38 PM, Andrei Alexandrescu wrote:<br>
> >On 6/5/13 2:42 PM, H. S. Teoh wrote:<br>
> >>Is that even necessary? We could just do this:<br>
> >><br>
> >>----std/algorithm.d----<br>
> >>module std.algorithm;<br>
> >>public import std.algorithm.search;<br>
> >>public import std.algorithm.compare;<br>
> >>public import std.algorithm.iteration;<br>
> >>public import std.algorithm.sort;<br>
> >>public import std.algorithm.set;<br>
> >>public import std.algorithm.mutation;<br>
> >>----snip----<br>
> ><br>
> >For perfect 100% undetectable backwards compatibility:<br>
> ><br>
> >module std.algorithm;<br>
> >private import std.algorithm.search;<br>
> >alias balancedParens = std.algorithm.search.balancedParens;<br>
> >alias boyerMooreFinder = std.algorithm.search.boyerMooreFinder;<br>
> >...<br>
> ><br>
> ><br>
> >Andrei<br>
><br>
> Wait, that all doesn't work - there's confusion between the file<br>
> std/algorithm.d file and the std/algorithm/ directory.<br>
</div></div>[...]<br>
<br>
Oh? I thought the compiler would be smart enough to look for<br>
"std/algorithm.d" when you say "import std.algorithm", and to look for<br>
std/algorithm/*.d when there's trailing stuff following "std.algorithm".<br>
<br>
Or is this why somebody was suggesting some time ago about importing a<br>
directory being implicitly translated to importing "_.d" in the<br>
directory?<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
T<br>
<br>
--<br>
Do not reason with the unreasonable; you lose by definition.<br>
</font></span></blockquote></div><br>