[Issue 7341] New: writefln of strings array with size formatting
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat Jan 21 15:28:01 PST 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7341
           Summary: writefln of strings array with size formatting
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2012-01-21 15:28:00 PST ---
D2 code:
import std.stdio;
void main() {
    int[] a1 = [1, 10, 5];
    writefln("%12d", a1);
    string[] a2 = ["red", "yellow", "ya"];
    writefln("%12s", a2);
}
Output:
[           1,           10,            5]
["red", "yellow", "ya"]
But I expect an output more like:
[           1,           10,            5]
[       "red",     "yellow",         "ya"]
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list