Re: Want a module to import from a sister directork; How?

2023-02-14 Thread ryuukk_ via Digitalmars-d-learn
On Tuesday, 14 February 2023 at 21:55:24 UTC, Adam D Ruppe wrote: On Tuesday, 14 February 2023 at 21:23:26 UTC, ryuukk_ wrote: module name must correspond to its path this is not true. I thought it had to match, that's interesting

Re: Want a module to import from a sister directork; How?

2023-02-14 Thread Adam D Ruppe via Digitalmars-d-learn
On Tuesday, 14 February 2023 at 21:23:26 UTC, ryuukk_ wrote: module name must correspond to its path this is not true.

Re: Want a module to import from a sister directork; How?

2023-02-14 Thread ryuukk_ via Digitalmars-d-learn
Glad it worked! I wonder why DMD doesn't just parse the import and follow its path since module name must correspond to its path Does anyone know?

Re: Want a module to import from a sister directork; How?

2023-02-14 Thread jwatson-CO-edu via Digitalmars-d-learn
On Tuesday, 14 February 2023 at 17:56:39 UTC, ryuukk_ wrote: I think you need to do: ``` rdmd MLP.d -I ANN/ ``` Basically you need to tell the compiler where your imported packages are This did the trick. I did not need it when `utils` was the only local import, but I suppose the compiler

Re: Want a module to import from a sister directork; How?

2023-02-14 Thread ryuukk_ via Digitalmars-d-learn
I think you need to do: ``` rdmd MLP.d -I ANN/ ``` Basically you need to tell the compiler where your imported packages are

Want a module to import from a sister directork; How?

2023-02-14 Thread jwatson-CO-edu via Digitalmars-d-learn
I have the following directory structure: ``` ANN/ ANN/mathkit/ ANN/mathkit/package.d ANN/utils/ ANN/utils/package.d ANN/MLP.d ``` I have the following in "ANN/mathkit/package.d": ```d module ANN.mathkit; //... /// Local Imports /// import ANN.utils; //... ``` I