Interpolated strings?

Andy Valencia dont at spam.me
Mon Dec 16 21:42:06 UTC 2024


On Monday, 16 December 2024 at 20:42:45 UTC, Juraj wrote:
> On Monday, 16 December 2024 at 20:33:27 UTC, Andy Valencia 
> wrote:
>
>> string x = i"Message $(s) has value $(i)"
>>
> ```d
> import std.conv : text;
> string x = i"Message $(s) has value $(i)".text;
> ```
>
> [Documentation](https://dlang.org/spec/istring.html#tostring)
>
> Juraj

Thank you (and H.S. Teoh as well).  That does the trick nicely.

Andy



More information about the Digitalmars-d-learn mailing list