alias this on module

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Sun Apr 30 16:44:32 PDT 2017


On 4/30/17 7:35 PM, Jonathan Marler wrote:
> Any reason why "alias this" doesn't work at the module level?  If I
> recall correctly, a module is really just a "class" under the hood, but
> when I tried to use it I got:
>
> Error: alias this can only be a member of aggregate, not module
> <module-name>
>

public import is to modules as alias this is to structs/classes :)

-Steve


More information about the Digitalmars-d mailing list