digitalmars.D.bugs - [Issue 16161] New: std.format doesn't acknowledge preceding
- via Digitalmars-d-bugs (23/23) Jun 10 2016 https://issues.dlang.org/show_bug.cgi?id=16161
https://issues.dlang.org/show_bug.cgi?id=16161 Issue ID: 16161 Summary: std.format doesn't acknowledge preceding int-width argument Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: greensunny12 gmail.com 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, '#')); # --
Jun 10 2016