Namespace for a module defined by its import path

Jeff Thompson via Digitalmars-d digitalmars-d at puremagic.com
Wed Nov 9 15:04:19 PST 2016


On Wednesday, 9 November 2016 at 22:15:31 UTC, Jeff Thompson 
wrote:
> On Wednesday, 9 November 2016 at 07:21:28 UTC, ZombineDev wrote:
>> On Tuesday, 8 November 2016 at 18:33:13 UTC, Jeff Thompson 
>> wrote:
>>> On Tuesday, 8 November 2016 at 17:00:44 UTC, Jeff Thompson 
>>> wrote:
>>>> [...]
>>>
>>> ... or is there a way to get the path at compile time? I 
>>> could try some mixin magic to construct the package name 
>>> including the path.
>>
>> I guess this is what you're looking for:
>> http://dlang.org/changelog/2.072.0.html#__FILE_FULL_PATH__
>
> Wow, thanks! This looks like the keyword was just added last 
> month. Is that right?

... Unfortunately it seems I can't use a mixin for a module 
declaration. Is that right?


More information about the Digitalmars-d mailing list