Change the name of ArrayBoundsException in druntime

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Oct 23 06:46:18 PDT 2008


Sergey Gromov wrote:
> Wed, 22 Oct 2008 12:01:36 -0700,
> Sean Kelly wrote:
>> And as for ArrayBoundsException... how about IndexOutOfBoundsError. 
>> It's long, but probably the most self-explanatory.  Also, any value in 
>> retaining ArrayBoundsError and having it subclass this?  I'd think not, 
>> but figured I'd ask anyway.
> 
> Maybe IndexingError ?  There are not necessarily any bounds when you're 
> indexing into an arbitrary collection.

STL has range_error. I like that because it's rather general.

Andrei



More information about the Digitalmars-d mailing list