Re: Regarding writefln formatting

2012-03-22 Thread Kenji Hara
On Wednesday, 21 March 2012 at 01:26:23 UTC, bearophile wrote: import std.stdio; void main() { auto mat = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]; writefln(%(%(%d %)\n%), mat); writeln(); writefln([%(%(%d %)\n%)], mat); writeln();

Re: Regarding writefln formatting

2012-03-20 Thread bearophile
Andrej Mitrovic: I didn't know that! Is this documented anywhere? It's documented formally, but I see no usage examples of the nested formatting syntax: http://dlang.org/phobos/std_format.html Bye, bearophile