[Issue 15386] std.format.formatValue usage hangs

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Oct 18 16:08:43 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=15386

Ryuichi OHORI <r.97all at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.97all at gmail.com

--- Comment #2 from Ryuichi OHORI <r.97all at gmail.com> ---
Not only the 'internal' ones, but also from public functions, this issue can be
reproduced:

void main()
{
    import std.stdio;
    "%(%0*d%)".writefln(new int[1]);
}

I intended to specify equal width for each element of an array, put the width
before new int[1] and got a runtime error. Removing the width from the
arguments, I've come up with this code.

--


More information about the Digitalmars-d-bugs mailing list