DIP 1027---String Interpolation---Community Review Round 1

mipri mipri at minimaltype.com
Tue Dec 17 19:29:00 UTC 2019


On Tuesday, 17 December 2019 at 17:31:20 UTC, mipri wrote:
> What's wanted is for
>
>   int apple;
>   string my_is = i"apple=$apple";
>   apple = 36;
>   writeln(my_is);
>
> to output "apple=36"

Of course this should read "apple=0".

This is a mistake I wouldn't've made with a logical
programming language :(


More information about the Digitalmars-d mailing list