Bad array indexing is considered deadly

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Wed May 31 14:02:06 PDT 2017


On 5/31/17 4:06 PM, Moritz Maxeiner wrote:
> On Wednesday, 31 May 2017 at 13:04:52 UTC, Steven Schveighoffer wrote:
>> This is like the  equivalent of having a guard rail on a road not only
>> stop you from going off the cliff but proactively disable your car
>> afterwards to prevent you from more harm.
>
> Sorry for double post, but - after thinking more about this - I do not
> agree that this fits. I think a better analogy would be this:
> Your car has an autonomous driving system and an anti-collision system
> and the anti-collision system detects that you are about to hit an
> obstacle (let us say another car); as a result it engages the breaks and
> shuts off the autonomous driving system.

Nope, an autonomous system did not type out my code that caused the out 
of bounds error, I did :)

-Steve


More information about the Digitalmars-d mailing list