[Issue 7455] Allow a cast to discard precision from a floating point during constant folding

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 12 11:59:49 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7455


Stewart Gordon <smjg at iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg at iname.com
            Summary|narrowing float cast        |Allow a cast to discard
                   |skipped for x87 values      |precision from a floating
                   |                            |point during constant
                   |                            |folding
           Severity|normal                      |enhancement


--- Comment #1 from Stewart Gordon <smjg at iname.com> 2012-02-12 11:59:48 PST ---
http://dlang.org/float.html
"Regardless of the type of the operands, floating point constant folding is
done in real or greater precision."

I agree that an explicit cast should override this behaviour, at least to the
point of discarding the extra precision from its operand, but it's technically
an enhancement request.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list