On Thu, 05 Apr 2012 10:53:34 -0400, deadalnix <deadal...@gmail.com> wrote:

Le 05/04/2012 16:47, Steven Schveighoffer a écrit :
But for moving a module like std.algorithm to a package, it's cumbersome.

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.

Plus, the package accessibility modifier would be broken with such a pattern.

The all.d, package.d, _.d, or, as I propose foldername.d (and submodules into foldername) do not break package accessibility modifier, which is better.

I don't really know what you mean, I didn't read that post. Would you mind posting a link or repeating that argument?

-Steve

Reply via email to