[Issue 15348] std.stdio.writef format specifier error message
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Apr 21 12:46:10 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=15348
Nick Treleaven <nick at geany.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nick at geany.org
--- Comment #1 from Nick Treleaven <nick at geany.org> ---
Just for reference, you can now use a compile-time format string - you get an
error for the right source line (after the first error):
writef!"%*10d"(100);
/dlang/dmd/src/phobos/std/stdio.d(3878): Error: static assert: "$ expected"
onlineapp.d(5): instantiated from here: writef!("%*10d", int)
Fixing this issue could still be useful for runtime format strings.
--
More information about the Digitalmars-d-bugs
mailing list