About string and int spliced together.

Steven Schveighoffer schveiguy at gmail.com
Fri Jun 19 12:06:36 UTC 2020


On 6/19/20 6:57 AM, Nick Treleaven wrote:
> 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.

I think we should revert back to toChars, and see what the test suite 
produces. The test case should be added to the test suite as well.

-Steve


More information about the Digitalmars-d mailing list