A few things.

Module names should be lower case.

Each file, needs the full module declaration.


source/foo/bar.d:

```d

module foo.bar;

```


source/app.d:

```d

module app;

import foo.bar;

```


Directories matter, this allows the import path search (via the use of the -I switch) to locate modules based upon the filename relative to the directory in the search.


  • Error when using... Liam McGillivray via Digitalmars-d-learn
    • Re: Error w... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: Err... Liam McGillivray via Digitalmars-d-learn
        • Re:... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
    • Re: Error w... Paul Backus via Digitalmars-d-learn
      • Re: Err... Liam McGillivray via Digitalmars-d-learn
        • Re:... Liam McGillivray via Digitalmars-d-learn
          • ... Steven Schveighoffer via Digitalmars-d-learn
            • ... Liam McGillivray via Digitalmars-d-learn
              • ... Liam McGillivray via Digitalmars-d-learn
                • ... Danilo via Digitalmars-d-learn
            • ... Liam McGillivray via Digitalmars-d-learn

Reply via email to