Why don't we switch to C like floating pointed arithmetic instead of automatic expansion to reals?
Ilya Yaroshenko via Digitalmars-d
digitalmars-d at puremagic.com
Sat Aug 6 23:45:41 PDT 2016
On Saturday, 6 August 2016 at 22:32:08 UTC, Walter Bright wrote:
> On 8/6/2016 3:14 PM, David Nadlinger wrote:
>> Of course, if floating point values are strictly defined as
>> having only a
>> minimum precision, then folding away the rounding after the
>> multiplication is
>> always legal.
>
> Yup.
>
> So it does make sense that allowing fused operations would be
> equivalent to having no maximum precision.
Fused operations are mul/div+add/sub only.
Fused operations does not break compesator subtraction:
auto t = a - x + x;
So, please, make them as separate pragma.
More information about the Digitalmars-d
mailing list