On 12/22/11 1:25 PM, Piotr Szturmaj wrote:
I wish D could support partial modules - partial as analogy to C#'s
partial classes.

module std.datetime-unit1;
import std.datetime-unit2;
// dash allowed only in submodules with the same module name
....

module std.datetime-unit2;
import std.datetime-unit1;
....

// then

module whatever;
import std.datetime; // as usual

I think there's a lot of mileage in the 1:1 correspondence between files and modules, and between directories and packages. We should keep it that way.

Andrei

Reply via email to