← Back to index
|
Original Bugzilla link
Bug 16161 – std.format doesn't acknowledge preceding int-width argument
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-06-11T03:12:11Z
Last change time
2019-12-02T10:41:43Z
Assigned to
No Owner
Creator
Seb
Comments
Comment #0
by greensunny12 — 2016-06-11T03:12:11Z
If the type is string or integer, specifying a width works well. However it doesn't for characters: %*s".writefln(2, "#")); # %*d".writefln(2, 42)); 42 %*c".writefln(2, '#')); #
Comment #1
by bugzilla — 2019-12-02T10:41:43Z
PR #7254 fixed this