Bad array indexing is considered deadly
Moritz Maxeiner via Digitalmars-d
digitalmars-d at puremagic.com
Wed May 31 16:55:06 PDT 2017
On Wednesday, 31 May 2017 at 23:40:00 UTC, Timon Gehr wrote:
>>
>> In the context of the conversation, and error has already
>> occurred and the all cases was referring to all the cases that
>> lead to the error.
> Bounds checks have /no business at all/ trying to handle
> preexisting memory corruption,
Sure, because the program is in an undefined state by that point.
There is only termination.
> and in that sense they are comparable to program startup.
I disagree.
More information about the Digitalmars-d
mailing list