Learning D - modules packages and the package.d

Ali fakeemail at example.com
Wed Apr 4 04:57:16 UTC 2018


On Wednesday, 4 April 2018 at 04:54:50 UTC, Ali wrote:
> at first i though package.d is special name, as in i must call 
> the file package.d or this trick or idiom to work

the trick was to have one module that public import all the 
modules you import as group in other modules

so instead of importing a dozen or so modules, you only import 
one module that imports everything you need


More information about the Digitalmars-d-learn mailing list