[Issue 6455] New: std.string.format doesn't understand positional arguments
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 8 05:15:32 PDT 2011
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: nobody at puremagic.com
ReportedBy: simendsjo at gmail.com
--- Comment #0 from simendsjo <simendsjo at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list