A code example that shows why I don't like warnings
tsbockman
thomas.bockman at gmail.com
Tue Oct 22 03:19:19 UTC 2019
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
More information about the Digitalmars-d
mailing list