← Back to index
|
Original Bugzilla link
Bug 5444 – std.string.format: arguments without format specifier appended to result
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-01-10T15:11:00Z
Last change time
2012-04-01T15:05:31Z
Assigned to
nobody
Creator
tomeksowi
Comments
Comment #0
by tomeksowi — 2011-01-10T15:11:21Z
assert(format("aaa", 1) == "aaa"); // fails, produces "aaa1" assert(format("1%s3", 2, "4", '5') == "123"); // fails, produces "12345" Interestingly, writefln behaves correctly.
Comment #1
by smjg — 2012-04-01T15:05:31Z
*** This issue has been marked as a duplicate of issue 4532 ***