Change the name of ArrayBoundsException in druntime

Sean Kelly sean at invisibleduck.org
Fri Oct 31 15:56:49 PDT 2008


Andrei Alexandrescu wrote:
> 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.

The terminology matches D's new range concept anyway, which is a nice 
perk.  Works for me.


Sean



More information about the Digitalmars-d mailing list