String Interpolation

Walter Bright newshound2 at digitalmars.com
Wed Oct 25 07:08:06 UTC 2023


On 10/21/2023 2:11 PM, Imperatorn wrote:
> Agreed. We need a better/simpler way to get the string from the expression 
> without special syntax.

```
import std.format;
alias f = std.format.format;

enum b = "betty";
pragma(msg, i"hello $b".f);
```


More information about the Digitalmars-d mailing list