Developing a plan for D2.0: Getting everything on the table

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Jul 27 06:46:38 PDT 2009


yigal chripun wrote:
> Andrei Alexandrescu Wrote:
> 
>>> Is it appropriate to define multiple classes, structs, templates, etc 
>>> within a single module? What considerations should inform the decision 
>>> regarding the placement of module boundaries?
>> I think it's appropriate because many pieces of functionality come as a 
>> bundle. The rule of thumb is, module provides the functionality, and 
>> it's up to the designer to decide what that entails.
>>
>> Andrei
> 
> The rule of thumb above is good in theory but in practice such a given bundle of functionality can produce a 30_000 line file. while all those lines should be "bundled" conceptually together, D's restriction of module == file makes for a huge file that is a hassle to work with. 
> 
> yes, a "module" should represent a conceptual bundle of functionallity but forcing this into one huge file is wrong. 

I think public import can help with that.

Andrei



More information about the Digitalmars-d mailing list