[Issue 5444] New: std.string.format: arguments without format specifier appended to result

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 10 15:13:07 PST 2011


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

           Summary: std.string.format: arguments without format specifier
                    appended to result
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: tomeksowi at gmail.com


--- Comment #0 from Tomasz Sowiński <tomeksowi at gmail.com> 2011-01-10 15:11:21 PST ---
assert(format("aaa", 1) == "aaa");  // fails, produces "aaa1"
assert(format("1%s3", 2, "4", '5') == "123");  // fails, produces "12345"

Interestingly, writefln behaves correctly.

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