[Issue 4835] DMD should warn about integer overflow in computed constant

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 26 22:46:16 PDT 2013


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



--- Comment #12 from Luís Marques <luismarques at gmail.com> 2013-03-26 22:46:13 PDT ---
(In reply to comment #11)
> While I disagree with bearophile about doing such checks at runtime, due to the
> performance cost, doing them at compile time is a whole 'nother story.

Why don't you make the runtime over/underflow checks opt-in? (compiler option).
There's a 0 performance cost that way, both for debug and release, by default,
so no performance excuse. Then we can always discuss it later if it should be
opt-out for the debug builds.

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