Always false float comparisons

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Fri May 13 17:19:12 PDT 2016


On 5/13/2016 2:42 PM, Ola Fosheim Grøstad wrote:
> On Friday, 13 May 2016 at 21:36:52 UTC, Walter Bright wrote:
>> On 5/13/2016 1:57 PM, Ola Fosheim Grøstad wrote:
>>> It should in C++ with the right strict-settings,
>>
>> Consider what the C++ Standard says, not what the endless switches to tweak
>> the compiler do.
>
> The C++ standard cannot even require IEEE754. Nobody relies only on what the C++
> standard says in real projects. They rely on what the chosen compiler(s) on
> concrete platform(s) do.


Nevertheless, C++ is what the Standard says it is. If Brand X compiler does 
something else, you should call it "Brand X C++".


More information about the Digitalmars-d mailing list