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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Aug 31 14:03:55 PDT 2014


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

monarchdodra at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |monarchdodra at gmail.com

--- Comment #2 from monarchdodra at gmail.com ---
(In reply to yebblies from comment #1)
> I'm not sure it should fail.  This is how unsigned types usually work.

Yeah... but it's not actually an arithmetic operations here. It's a setter
operation. AFAIK, array resize detects overflow. I don't see why it wouldn't
detect underflow?

Just saying.

--


More information about the Digitalmars-d-bugs mailing list