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

Lodovico Giaretta <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #4 from Lodovico Giaretta <[email protected]> ---
The current sformat signature is:

char[] sformat(Char, Args...)(char[] buf, in Char[] fmt, Args args)
{
     // something that uses encode(...)
}

It should become:

char[] sformat(Char, Args...)(char[] buf, in Char[] fmt, Args args)
{
    return sformat!(UseReplacementDchar.no)(buf, fmt, args);
}
char[] sformat(UseReplacementDchar urd, Char, Args...)(char[] buf, in Char[]
fmt, Args args)
{
    // something that uses encode!urd(...)
}

So that current behaviour does not change and one can opt-in for the @nogc
version.

--

Reply via email to