dmd: Module X conflicts with itself (Was: Re: RDMD on Windows)

Mafi mafi at example.org
Sun Aug 22 07:59:02 PDT 2010


Am 22.08.2010 16:39, schrieb Andrej Mitrovic:
> That's very interesting.
>
> But wouldn't that cause problems if you're using package labels in some of those modules? AFAIK package gives access to all files in the current directory, so even if you "move" a module by changing the module declaration, the files in the current directory will still have access to it, right?
>
> If that's true, I'm thinking this could potentially cause problems (if you're moving modules by changing their declaration instead of physically moving them).
>
AFAIK the package attribute gives access to all modules which define to 
be in the same package, ie module declarations are eqivalent before the 
*last* dot.
If it's not like that, then package should be called 'directory'.



More information about the Digitalmars-d-learn mailing list