Inline Module / Namespace

Adam D. Ruppe destructionator at gmail.com
Fri Mar 9 19:14:28 UTC 2018


On Friday, 9 March 2018 at 18:51:50 UTC, Manu wrote:
> If you tried to `import modulename;` from some other module... 
> how would the compiler know where to find it?

The compiler has to parse the module to find them correctly 
already. When you do foo.bar into foo/bar.d, it is just the first 
guess the tools take by convention. If you pass the module on the 
command line the compiler actually parses them to find the name 
anyway and the file system location/name is irrelevant.


More information about the Digitalmars-d mailing list