trash-d version 15

Adam D Ruppe destructionator at gmail.com
Tue Mar 8 16:25:44 UTC 2022


On Tuesday, 8 March 2022 at 16:19:13 UTC, rushsteve1 wrote:
> According to [the module 
> documentation](https://dlang.org/spec/module.html) you can omit 
> the `module x;` and it will implicitly be the file name.

This is pretty flaky, I'd strongly recommend that for any module 
ever imported, use the explicit module definition, and use at 
last two names: `module mystuff.bar;` instead of `module bar;`, 
so there's lesser odds of a conflict with other libs out there 
(remember, the module namespace is superglobal across the whole 
end-user project, not just your own repo.)



More information about the Digitalmars-d-announce mailing list