[Issue 16161] New: std.format doesn't acknowledge preceding int-width argument
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Fri Jun 10 20:12:11 PDT 2016
    
    
  
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 at puremagic.com
          Reporter: greensunny12 at 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, '#'));
#
--
    
    
More information about the Digitalmars-d-bugs
mailing list