On Thursday, 25 January 2024 at 08:58:29 UTC, Danilo wrote:

You can use `q{}`


```D
string wrap(string f) {
    return "void wrap_"~f~"() { "~f~"(); }";
}
void fun() {}
mixin(wrap("fun"));
```
Not only `q{}` will make this even less readable—it won’t even work.

Reply via email to