Namespace for a module defined by its import path

Jeff Thompson via Digitalmars-d digitalmars-d at puremagic.com
Tue Nov 8 09:00:44 PST 2016


On Wednesday, 26 October 2016 at 17:12:30 UTC, Jonathan Marler 
wrote:
> On Wednesday, 26 October 2016 at 09:53:35 UTC, Jeff Thompson 
> wrote:
>> [...]
>
> I've thought about this and have concluded that you can't 
> replicate these semantics in D.  Here's 2 solutions though:
>
> [...]

Right now, if a module doesn't have a package statement, the 
module name is the file name with the path and and extension 
stripped off. My problem would be solved by a compiler option to 
keep the path.


More information about the Digitalmars-d mailing list