February 24, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7571

           Summary: No uniformity of array textual representation
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: bearophile_hugs@eml.cc


--- Comment #0 from bearophile_hugs@eml.cc 2012-02-24 05:07:07 PST ---
I am not sure if this is a small bug or if this is "as designed". Close it if this is working as designed.


D2 code:

import std.stdio, std.conv, std.string;
void main() {
    auto a = [1, 2, 3];
    writeln(a);
    writefln("%s", a);
    writeln(text(a));
    writeln(format("%s", a));
}


The output given by DMD 2.059head:

[1, 2, 3]
[1, 2, 3]
[1, 2, 3]
[1,2,3]


I think writefln("%s") and format("%s") should give the same output. So I think
here format("%s") should add a space after the comma.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 01, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7571


Stewart Gordon <smjg@iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |smjg@iname.com
         Resolution|                            |DUPLICATE


--- Comment #1 from Stewart Gordon <smjg@iname.com> 2012-04-01 15:05:44 PDT ---
*** This issue has been marked as a duplicate of issue 4532 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------