← Back to index
|
Original Bugzilla link
Bug 6455 – std.string.format doesn't understand positional arguments
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
tools
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2011-08-08T05:15:00Z
Last change time
2015-06-09T04:37:41Z
Assigned to
nobody
Creator
simendsjo
Comments
Comment #0
by simendsjo — 2011-08-08T05:15:31Z
.. At least in 2.054 import std.string; void main() { format("%1$s", "a"); } std.format.FormatError: std.format string Using formattedWrite works: import std.format, std.range; void main() { auto app = appender!string(); formattedWrite(app, "%1$s", "a"); assert(app.data == "a"); }
Comment #1
by bus_dbugzilla — 2011-08-16T12:42:22Z
*** This issue has been marked as a duplicate of issue 4532 ***