[Issue 9937] CTFE floats don't overflow correctly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 24 06:36:55 PDT 2013


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



--- Comment #11 from Don <clugdbug at yahoo.com.au> 2013-04-24 06:36:53 PDT ---
(In reply to comment #10)
> To quote from
> http://docs.oracle.com/cd/E19060-01/stud8.compiler/817-0932/ncg_goldberg.html:
> 
> “Of course, this form of double-rounding is highly unlikely to affect any
> practical program adversely.”
> 
> Therefore, rather than retard the precision of all programs,

This is not about retarding precision of all programs (the way Java does). This
is about making compile-time behave the same as runtime.

Specifically:
1. A manifest constant should not be carrying extra precision. That's simply
incorrect.
2. JIT compilation onto the target machine should be valid for CTFE.
3. The results of CTFE should be as reproducible as runtime results are.

Right now, there is lots of stuff which appears to work, but relies on the
current DMD implementation.

-- 
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