[Issue 10904] New: "%(%s %)" format string support for std.container.Array too

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 26 14:02:30 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10904

           Summary: "%(%s %)" format string support for
                    std.container.Array too
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2013-08-26 14:02:29 PDT ---
import std.stdio: writefln;
import std.container: Array;
void main() {
    int[10] a1;
    writefln("%(%d %)", a1);
    Array!int a2;
    a2.length = 10;
    writefln("%(%d %)", a2);
}


With dmd 2.064alpha it gives a run-time error:

std.format.FormatException at ...\dmd2\src\phobos\std\format.d(2472): Expected
'%s' format specifier for type 'Array!int'

-- 
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