Interpolated strings?

Juraj zero at vec4.xyz
Mon Dec 16 20:42:45 UTC 2024


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


More information about the Digitalmars-d-learn mailing list