throwing a RangeError in non-release mode

Steven Schveighoffer schveiguy at yahoo.com
Fri Jul 2 17:45:51 PDT 2010


When not in release mode, accessing an out-of-bounds element in an array  
throws a RangeError.  I would like to do the same thing in dcollections  
when indexing, but the only tool I know of that enables throwing an error  
in non-release mode is assert, and that only throws an assert error.

Does anyone know how to throw an arbitrary exception on an error when not  
in release mode?

-Steve


More information about the Digitalmars-d-learn mailing list