About string and int spliced together.

Nick Treleaven nick at geany.org
Fri Jun 19 10:57:42 UTC 2020


On Thursday, 18 June 2020 at 14:24:40 UTC, Steven Schveighoffer 
wrote:
> On 6/18/20 10:04 AM, Stanislav Blinov wrote:
>> https://github.com/dlang/phobos/blob/master/std/conv.d#L4193
>
> Yikes. Let me rephrase.
>
> text is perfectly capable of avoiding this, and should, but for 
> some reason doesn't.

It used to call std.conv.toChars but that triggered a dmd 
regression with a particular set of circumstances so it was 
changed to use to!():
https://github.com/dlang/phobos/pull/6659

In bugzilla there was a better alternative workaround but no one 
submitted a pull for that in time for the release:
https://issues.dlang.org/show_bug.cgi?id=17712#c11

I haven't been able to reproduce the test case with v2.092.0, but 
maybe I'm doing something wrong.


More information about the Digitalmars-d mailing list