Just another example of missing string interpolation

Imperatorn johan_forsberg_86 at hotmail.com
Sun Oct 15 07:10:06 UTC 2023


On Saturday, 14 October 2023 at 20:05:42 UTC, Andrea Fontana 
wrote:
> On Saturday, 14 October 2023 at 14:47:26 UTC, Andrey Zherikov 
> wrote:
>>
>> Why does not this work for you?
>> ```d
>> string s = text("Hello ",name,", you are ",age," years old and 
>> have ",money - 42," dollars in the bank");
>> ```
>
> Check the first post.

I would actually be fine with smith like

interp!"Hello {name}, your name is {name} and you have {money 
-42} dollars in the bank" until he have a character to use for it


More information about the Digitalmars-d mailing list