sorting associative array's keys by values
Jonathan M Davis
jmdavisProg at gmx.com
Sat Jun 16 15:02:52 PDT 2012
On Saturday, June 16, 2012 21:48:52 maarten van damme wrote:
> Ok, It turns out that an array out of bound exception isn't an
> exception but an error?
> Try catch (Error e) worked fine.
Yes, it's a RangeError. It's considered a programming bug if you access an
array out of bounds - just like any assertion failure is an AssertError and
considered a bug in your program in if it fails. And so they kill the program
when they fail. Catching either of them is generally a very bad idea.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list