DIP16: Transparently substitute module with package
Steven Schveighoffer
schveiguy at yahoo.com
Thu Apr 5 08:06:22 PDT 2012
On Thu, 05 Apr 2012 10:59:31 -0400, Steven Schveighoffer
<schveiguy at yahoo.com> wrote:
> On Thu, 05 Apr 2012 10:53:34 -0400, deadalnix <deadalnix at gmail.com>
> wrote:
>
>> Le 05/04/2012 16:47, Steven Schveighoffer a écrit :
>>>
>>> Not really. Just move the files to another directory (i.e.
>>> std/internal/algorithm) and publicly import them.
>>>
>>
>> std/internal isn't good. If I just want to import sort, I would have to
>> do std.internal.algorithm.sort, which isn't good.
>
> import std.algorithm : sort;
>
> BTW, this doesn't work today, I'll file a bug.
Nevermind, it works the same as if sort is defined in a std.algorithm
module. I'm kind of surprised the FQN doesn't work though...
-Steve
More information about the Digitalmars-d
mailing list