Many questions

Ellery Newcomer ellery-newcomer at utulsa.edu
Sun May 3 22:25:59 PDT 2009


Nick Sabalausky wrote:
> -------------------------------------
> //File: foo/fooA.d
> module foo.fooA;
> class fooA {}
> 
> //File: foo/fooB.d
> module foo.fooB;
> class fooB {}
> 
> //File: foo/fooC.d
> module foo.fooC;
> class fooC {}
> 
> //File: foo/all.d
> module foo.all;
> public import foo.fooA;
> public import foo.fooB;
> public import foo.fooC;
> 
> //File: main.d
> import foo.all;
> void main() {...}
> -------------------------------------
> 
> This works fine and does exactly what you want.
> 

How well will this work if there is fairly tight coupling between these 
three classes?



More information about the Digitalmars-d mailing list