Always false float comparisons

tsbockman via Digitalmars-d digitalmars-d at puremagic.com
Mon May 9 13:57:15 PDT 2016


On Monday, 9 May 2016 at 20:16:59 UTC, Walter Bright wrote:
> On 5/9/2016 11:51 AM, tsbockman wrote:
>> (4) is already planned; it's just taking *a lot* longer than 
>> anticipated to
>> actually implement it:
>>     https://issues.dlang.org/show_bug.cgi?id=259
>>     https://github.com/dlang/dmd/pull/1913
>>     https://github.com/dlang/dmd/pull/5229
>
> I oppose this change. You'd be better off not having unsigned 
> types at all than this mess, which was Java's choice. But then 
> there are more problems created.

What mess? The actual fix for issue 259 is simple, elegant, and 
shouldn't require much code in the wild to be changed.

The difficulties and delays have all been associated with the 
necessary improvements to VRP and constant folding, which are 
worthwhile in their own right, since they help the compiler 
generate faster code.


More information about the Digitalmars-d mailing list