Catching array out of bounds

jicman cabrera_ at _wrc.xerox.com
Thu Nov 5 06:41:28 PST 2009


grauzone Wrote:

> Justin Johansson wrote:
> > Also (and I' not 100% sure about this) that you might need to
> > declare a variable along with the catch statement like as follows
> > (at least that's what I always do regardless of whether or
> > not it may be omitted) ...
> 
> And he should remember that out of bounds checking is enabled only in 
> debug builds. In release builds, out of bounds accesses will simply lead 
> to undefined behavior.

Ok, I will bite...  And why, then, it is in the array help as an option to catch the out of bounds?


More information about the Digitalmars-d-learn mailing list