Better string mixins
SashaGreat
s at g.com
Fri Dec 28 12:29:15 UTC 2018
On Friday, 28 December 2018 at 09:12:45 UTC, Nicholas Wilson
wrote:
> On Friday, 28 December 2018 at 05:55:30 UTC, Michelle Long
> wrote:
>> The problem with mixing in code is that one has to manually
>> build code strings like:
>>
>> [...]
>
> mixin accepts multiple arguments, see the bottom of
> https://dlang.org/spec/statement.html#mixin-statement
It would be nice if it were like C#:
mixin("x = {0}", x);
More arguments:
mixin("x = {0}; y = {1}", x, y);
S.
More information about the Digitalmars-d
mailing list