mixin template's alias parameter ... ignored ?

zjh fqbqrr at 163.com
Sun Jul 11 14:04:14 UTC 2021


```d
mixin template templateUGC ( typeStringUTF, alias 
lstrStructureID){
    public struct lstrStructureID {
       typeStringUTF w;
    }
}
mixin templateUGC!(string,  "gudtUGC08");
```
You say `This creates a struct with teh literal name 
lstrStructureID`.
I tried,can compile,but I don't know generate what.

Could you explain more detail?


More information about the Digitalmars-d-learn mailing list