DIP 1027---String Interpolation---Community Review Round 1
drug
drug2004 at bk.ru
Wed Dec 11 12:50:00 UTC 2019
On 12/11/19 2:35 PM, rumbu wrote:
> Nope, that means "use %d format specifier to print number of bananas".
> According to the DIP, this is invalid:
>
> string what = "bread";
> int d = 10;
> writefln(i"making %what using %d ingredients");
>
According to the DIP this is valid. It would be interpreted as
writefln("making %s using %s ingredients", what, d);
More information about the Digitalmars-d
mailing list