A suggestion for modules names / sharing code between projects
Adam D. Ruppe via Digitalmars-d
digitalmars-d at puremagic.com
Mon Feb 29 12:59:45 PST 2016
On Monday, 29 February 2016 at 20:05:11 UTC, Sebastien Alaiwan
wrote:
> Although, I'm trying to avoid having these redundant module
> declaration directives at the beginning of each of my library
> files.
Those module declarations aren't redundant - they are virtually
required (I think it is a mistake that they aren't explicitly
required in all cases, actually)
The file layout does not matter to the language itself. Only that
module declaration does - it is NOT optional if you want a
package name.
More information about the Digitalmars-d
mailing list