[Issue 13055] @nogc std.string.sformat
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Jul 14 06:34:11 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=13055
Lodovico Giaretta <lodovico at giaretart.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lodovico at giaretart.net
--- Comment #4 from Lodovico Giaretta <lodovico at giaretart.net> ---
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.
--
More information about the Digitalmars-d-bugs
mailing list