Wrap a call?

Julian Fondren julian.fondren at gmail.com
Wed Feb 18 20:21:32 UTC 2026


On Wednesday, 18 February 2026 at 19:43:38 UTC, JN wrote:
>     void main()
>     {
>         mixin WrapCall!"add(1, 2)";
>     }
>
> This doesn't work, if I change it to mixin(WrapCall!"add(1, 
> 2")), it works, why?

This isn't the 
https://dlang.org/spec/statement.html#mixin-statement , and what 
your change does it make it that.

Contrast:

```d
void main() {
     mixin WrapCall!"add(1, 2)";
     mixin(WrapCall);
}
```


More information about the Digitalmars-d-learn mailing list