Support alias this in module scope?
Jonathan Marler
johnnymarler at gmail.com
Wed May 23 16:07:22 UTC 2018
On Wednesday, 23 May 2018 at 03:44:36 UTC, Manu wrote:
> If we can use `alias this` to mirror an entire C++ namespace
> into the location we want (ie, the scope immediately outside
> the C++ namespace!!), then one sanitary line would make the
> problem quite more tolerable:
>
> extern(C++, FuckOff)
> {
> void bah();
> void humbug();
> }
> alias this FuckOff; // <-- symbols are now aliased where they
> should
> have been all along
>
>
>
> (count the seconds until the reply that says to use reflection
> to scan the scope, and use a mixin to... blah blah)
Had the same idea about a year ago :)
https://forum.dlang.org/post/bmawbtdaqdngoiqfoswo@forum.dlang.org
More information about the Digitalmars-d
mailing list