[Issue 9012] New: writef/format inconsistent with format specifier

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 12 16:50:07 PST 2012


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

           Summary: writef/format inconsistent with format specifier
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-11-12 16:50:03 PST ---
2.060 and git head:

import std.string;
import std.stdio;

void main()
{
    writefln("Set!%s(%(%s, %))", "int", [1, 2]);  // Set!int(1, 2)
    string s = format("Set!%s(%(%s, %))", "int", [1, 2]);  // format error
}

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