Just another example of missing string interpolation
Adam D Ruppe
destructionator at gmail.com
Tue Oct 17 19:20:13 UTC 2023
On Tuesday, 17 October 2023 at 19:03:48 UTC, Walter Bright wrote:
> That's a misunderstanding of how it works.
No, that's exactly how it works. Read the document:
writefln(i"I ate $apples and ${%d}bananas totalling $(apples +
bananas) fruit.");
gets rewritten as:
writefln("I ate %s and %d totalling %s fruit.", apples, bananas,
apples + bananas);
And read the post above, which uses *write*, not write*f*. Think
about the implications of that for a second.
More information about the Digitalmars-d
mailing list