On Friday, 13 September 2013 at 19:57:06 UTC, Andrej Mitrovic wrote:
Add the module declaration "module acme.gadget;" at the top of this file and it should work.

Thanks Andrej...

So, it works also if I add
:// main.d
:import path.to.nonexistent.location.app;

and
// gadget.d
: module path.to.nonexistent.location.app;

but, from TDPL pg 340
"To resolve import path.to.file, for example, the current directory is searched first for a subdirectory path/to. If the directory exists, the file file.di is queried, and if that is not found, the file file.d is queried. If the file has been found, the search ends."

Well, if what is written above is true, then why the compiler complains?







Reply via email to