About string and int spliced together.
Steven Schveighoffer
schveiguy at gmail.com
Fri Jun 19 13:08:08 UTC 2020
On 6/19/20 8:37 AM, Stanislav Blinov wrote:
> On Friday, 19 June 2020 at 10:57:42 UTC, Nick Treleaven wrote:
>
>> 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.
>
> Am I reading this right? Library was downgraded because of a regression
> in the compiler? Tell me I'm not reading this right.
I don't think it's a regression in the compiler, I think it's a bug that
always existed in the compiler, and a change to phobos brought it out.
So the decision was made to undo the phobos change rather than tackle
the (probably very difficult) compiler bug.
Not saying I agree with the decision, but that was why it was done. Some
were not happy with the resolution. I wish the compiler could be fixed,
but I lack the skills to even approach it. It seems the speculative
generation of templates is a difficult problem for even regular D
compiler devs to approach.
-Steve
More information about the Digitalmars-d
mailing list