Catching array out of bounds
grauzone
none at example.net
Thu Nov 5 06:38:50 PST 2009
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.
More information about the Digitalmars-d-learn
mailing list