On Sat, 01 Nov 2014 14:03:50 +0000 Nicolas Sicard via Digitalmars-d <[email protected]> wrote:
> What's the reason why the module keyword was introduced in the > first place? The package and module hierarchy could have been > deduced from the directory and file hierarchy, as it is the case > in Python, IIRC. no, it can't. assume i have a file "foo.d". in what package it should be? ah, yes, i compiling that with 'dmd -c foo.d'. and... this is actually module with name 'mylib.internal.foo'. how to deduce that? traverse up by directory tree? and where dmd should stop then?
signature.asc
Description: PGP signature
