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).

Rory Mcguire Wrote:

>  I D you can use the module declaration to "move" a module.
> e.g.
> filename: socket.d;
> module: alt.socket;
> 
> to import you'd do "import alt.socket;" even if the file is in the same
> directory as the module using the file.

Reply via email to