Bad array indexing is considered deadly

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Wed May 31 14:30:47 PDT 2017


On Wed, May 31, 2017 at 11:29:53PM +0200, Timon Gehr via Digitalmars-d wrote:
> On 31.05.2017 22:45, Moritz Maxeiner wrote:
[...]
> > No, because as I stated in my other post, the runtime *cannot*
> > assume that it is safe *in all cases*. If there is even one single
> > case in which it is unsafe, it must abort.
> 
> Hence all programs must abort on startup.

If D had *true* garbage collection, it would have done this upon
starting up any buggy program. :-D


T

-- 
Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth? -- Michael Beibl


More information about the Digitalmars-d mailing list