Many questions

Christopher Wright dhasenan at gmail.com
Tue May 5 03:53:01 PDT 2009


Georg Wrede wrote:
> Yigal Chripun wrote:
>> *but*, I do think that splitting one file that got too big over time 
>> or uniting a bunch of small files into one should be possible.
> 
> This would be especially good for us. D is mainly developed by 
> individuals, and there projects tend to grow organically -- as opposed 
> to the software industry that uses UML and other modeling tools, where 
> the entire gamut of classes is known before coding starts.
> 
> So, yes, it should be possible to reorganise code between files without 
> having to touch the code that uses them.

It *is* possible, by use of public imports.

Are you splitting one file into many? Public import the other modules.

Are you merging many files into one? Leave the other files with just a 
public import of the merged file.



More information about the Digitalmars-d mailing list