How to insert code in place with templates/mixins?

Stanislav Blinov stanislav.blinov at gmail.com
Mon Dec 20 18:12:35 UTC 2021


On Monday, 20 December 2021 at 18:03:09 UTC, rempas wrote:

> > Now the problem is that I want it to get the name of so 
> > symbol and add it to a string literal.
> Let's check this example: enum state(alias name) = `name` ~ ` = 
> 10;`;

https://dlang.org/spec/traits.html#identifier




More information about the Digitalmars-d-learn mailing list