Russell Lewis wrote:
...
> Case in point: I have been bitten by this perhaps half a dozen times
> *already* porting older code. This code used to work fine:
>
> writefln("The value is: %d", myVar, ". Do something!");
>
...
I bet a lot of to-be-ported D code will have this bug, I know my code will.
When you want to print a format string this way - last argument(s) simply
appended, it saves you two characters typing. When something saves any
characters typing and produces the same result, programmers will do that.