Imports
Mike Parker
aldacron at gmail.com
Thu Oct 5 12:17:23 UTC 2017
On Thursday, 5 October 2017 at 11:44:00 UTC, Jiyan wrote:
>>> [...]
> But as i see it with sourcePaths the directories are not
> influencing
> the module names(in the directories except "source"), so
> "dir.sub"
> will just have the name "sub" is there a way around that, except
> naming every module like:
>
> module dir.sub;
You have to pass the parent directory of dir rather than dir
itself, e.g.:
- src
-- dir
--- sub.d
dmd -Isrc
Regardless, every module should have a module name at the top.
There are situations where the inferred package & module names
can't work.
More information about the Digitalmars-d-learn
mailing list