DIP idea: q{}-inspired block mixins

Q. Schroll qs.il.paperinik at gmail.com
Thu Jun 11 00:20:35 UTC 2020


On Wednesday, 10 June 2020 at 23:51:45 UTC, Q. Schroll wrote:

About this:

>     enum RW(string typeName, string myname) = "
>         mixin[tName = \"%s\", name = \"%s\", _name = \"_%s\"]
>         {
>             ...
>         }
>     ".format(typeName, myname, myname);

It shouldn't be a template but rather a function. (For Stefan)


More information about the Digitalmars-d mailing list