Always false float comparisons
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Sun May 15 15:49:27 PDT 2016
On 5/15/2016 2:06 PM, Ola Fosheim Grøstad wrote:
> The net result is that adding const/immutable to a type can change the semantics
> of the program entirely at the whim of the compiler implementor.
C++ Standard allows the same increased precision, at the whim of the compiler
implementor, as quoted to you earlier.
What your particular C++ compiler does is not relevant, as its behavior is not
required by the Standard.
My proposal removes the "whim" by requiring 128 bit precision for CTFE.
More information about the Digitalmars-d
mailing list