Template and Type Literals

monkyyy crazymonkyyy at gmail.com
Tue Jun 4 20:14:41 UTC 2024


On Monday, 3 June 2024 at 11:15:50 UTC, Quirin Schroll wrote:
> \
> ```d
> alias mixin(__TEMPLATE_NAME__) = …;
> ```

what would be the expected output of?

```d
string bar(string s:__TEMPLATE_NAME__)()=>s;
string foo()=>bar;
void main(){
   foo.writeln;
}
```


More information about the dip.ideas mailing list