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.
  • Imports Jiyan via Digitalmars-d-learn
    • Re: Imports Mike Parker via Digitalmars-d-learn
      • Re: Imports Jiyan via Digitalmars-d-learn
        • Re: Imports Mike Parker via Digitalmars-d-learn

Reply via email to