www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16161] New: std.format doesn't acknowledge preceding

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:




%*d".writefln(2, 42));
  42




--
Jun 10 2016