"Alexander" <aldem+dm...@nk7.net> wrote in message news:iqh6gk$hpn$1...@digitalmars.com... > On 12.05.2011 17:05, Jonathan M Davis wrote: > >> A module is always one file and only one file. > > ...which could be really, really big due to this limitation > (std.datetime), and this is not always convenient sometimes - that's why I > like the idea of namespaces and partial classes. > ... > > However, there is a nice trick using mixin(import("file-to-include")) - > which could really help sometimes :) >
One could also just use public imports. Although using public imports for this sort of situation would probably would work even better if modules were allowed to have the same name as packages. I have no idea how difficult that would be to implement in DMD, though.