The state of string interpolation

o o at o.o
Sat Dec 8 17:17:13 UTC 2018


On Saturday, 8 December 2018 at 02:29:10 UTC, Steven 
Schveighoffer wrote:
> this compiles:
>
> writeln("a + b = ", a + b);
>
> But this does not:
>
> writeln(AliasSeq!("a + b = ", a + b));
>
> -Steve

As Paul Backus brought up in a PR, you can use 
`std.typecons.tuple`s instead, to use expressions. Example:

auto foo = tuple(i"a + b = $(a+b)");


More information about the Digitalmars-d mailing list