http://d.puremagic.com/issues/show_bug.cgi?id=6455
Summary: std.string.format doesn't understand positional
arguments
Product: D
Version: D2
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Optlink
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from simendsjo <[email protected]> 2011-08-08 05:15:31 PDT ---
.. 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");
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------