On 1/11/18 4:12 PM, kdevel wrote:
On Thursday, 11 January 2018 at 20:40:01 UTC, Dmitry Olshansky wrote:
What did you expect?


To be honest: A compile time error. Modern C compilers can check such format strings. Example: GCC 6:

But dmd isn't a C compiler, nor does it have to worry about the problems C has (namely, untyped varargs). To dmd, printf is just another function, there's nothing special about it.

-Steve

Reply via email to