On Saturday, 26 October 2019 at 02:42:04 UTC, rikki cattermole wrote:
On 26/10/2019 2:27 PM, 9898287 wrote:
[...]

You probably want -O3 not -O5.

 [...]

I assume what you intended is:
writeln("Hello, ", i);

Also for format functions in D you should prefer the templated variation as it provides compile time verification of arguments e.g.

writef!"Hello, {}\n%d"(i);

Please note that {} is not a format specifier.
printf style functions (which is what Phobos uses as the basis) for format specifiers begin with a percentage sign.

Thank you for pointing that out.


Reply via email to