[Issue 10124] Array length increases on subtraction of a big number instead of throwing RangeError

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 29 07:08:06 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=10124

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |backend
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla at digitalmars.com
         Resolution|---                         |WONTFIX

--- Comment #5 from Walter Bright <bugzilla at digitalmars.com> ---
This is an artifact of 2's complement arithmetic. Instrumenting the code to
detect integer arithmetic overflows will have a large performance penalty, so
is not done.

--


More information about the Digitalmars-d-bugs mailing list