http://d.puremagic.com/issues/show_bug.cgi?id=10904
Summary: "%(%s %)" format string support for
std.container.Array too
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Phobos
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2013-08-26 14:02:29 PDT ---
import std.stdio: writefln;
import std.container: Array;
void main() {
int[10] a1;
writefln("%(%d %)", a1);
Array!int a2;
a2.length = 10;
writefln("%(%d %)", a2);
}
With dmd 2.064alpha it gives a run-time error:
std.format.FormatException@...\dmd2\src\phobos\std\format.d(2472): Expected
'%s' format specifier for type 'Array!int'
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------