module keyword with curly brackets

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Sat Nov 1 07:13:52 PDT 2014


On Sat, 01 Nov 2014 14:03:50 +0000
Nicolas Sicard via Digitalmars-d <digitalmars-d at puremagic.com> 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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141101/4283120e/attachment.sig>


More information about the Digitalmars-d mailing list