Mixin and imports

data pulverizer data.pulverizer at gmail.com
Mon Jun 8 14:27:26 UTC 2020


On Monday, 8 June 2020 at 02:55:25 UTC, jmh530 wrote:
>
> ```
> ...
> template foo(string f) {
>     mixin("alias foo = .foo!(" ~ f ~ ");");
> }
>...
> ```

Out of curiosity what does the "." in front of `foo` mean? I've 
seen that in some D code on the compiler in GitHub and have no 
idea what it does. I tried Googling it to no avail. It doesn't 
have anything to do with UFCS does it?

Thanks


More information about the Digitalmars-d-learn mailing list