October 22, 2019 Re: A code example that shows why I don't like warnings | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Monday, 21 October 2019 at 07:08:23 UTC, Walter Bright wrote: > On 10/18/2019 9:38 AM, Adam D. Ruppe wrote: >> basically not a lot to say, just wanna make sure code like this is on the dev's radar if they ever revisit those warnings. > > Nothing gets on the radar if you don't put it in bugzilla ! This specific problem has been on Bugzilla for ages: https://issues.dlang.org/show_bug.cgi?id=14835 . It went nowhere because no one could figure out a reasonable way to make the compiler apply the warning *intelligently* in generic code, and there was no consensus to remove the current broken version, because it is still useful in non-generic code. This issue also killed efforts to improve various aspects of the compiler's handling of integer comparisons (twice): https://github.com/dlang/dmd/pull/5229 |
October 22, 2019 Re: A code example that shows why I don't like warnings | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Monday, 21 October 2019 at 07:08:23 UTC, Walter Bright wrote: > On 10/18/2019 9:38 AM, Adam D. Ruppe wrote: >> basically not a lot to say, just wanna make sure code like this is on the dev's radar if they ever revisit those warnings. > > Nothing gets on the radar if you don't put it in bugzilla ! Previous, inconclusive forum discussion on why/how/if to fix issue 14385: https://forum.dlang.org/post/bnzfuekewfguvnwdznfk@forum.dlang.org Walter Bright promising to look into it personally (I never heard back on this...): https://github.com/dlang/dmd/pull/5229#issuecomment-226634471 |
Copyright © 1999-2021 by the D Language Foundation