Pseudo namespaces

Idan Arye via Digitalmars-d digitalmars-d at puremagic.com
Thu Dec 3 18:01:15 PST 2015


On Friday, 4 December 2015 at 01:37:35 UTC, Mike wrote:
> On Friday, 4 December 2015 at 01:04:33 UTC, Idan Arye wrote:
>>
>> People are going to hate me, but 
>> http://dpaste.dzfl.pl/851d1d1f5e4b
>
> Doesn't seem to scale to member access:  
> http://dpaste.dzfl.pl/37193377524c
>
> /d649/f987.d-mixin-3(7): Error: 'this' is only defined in 
> non-static member functions, not fun
>
> Is there a way to make it work?
>
> Mike

Yea, my bad. Initially I used a template mixin, but the syntax 
was ugly so I changed it to a regular template + alias. When you 
use a template mixin member access does work: 
http://dpaste.dzfl.pl/9ca85cbecea7


More information about the Digitalmars-d mailing list