Scope of Mixins

DLearner bmqazwsx123 at gmail.com
Thu Aug 26 16:16:55 UTC 2021


Please confirm that mixins of format:
```
string mxn1(string VarName) {
     ...
}
```
Invoked like:
```
mixin(mxn1("Var1"));
```

Have a wider scope than mixins like:
```
string mxn2(string VarName)() {
    ...
}
```
Invoked like:
```
mixin(mxn2!"Var2");
```

I tried direct replacement of former by the latter, could not get 
clean compile until definition moved into same module.


Best regards




More information about the Digitalmars-d-learn mailing list