*/
extern (C) void onAssertError(string file, size_t line);
extern (C) void onAssertErrorMsg(string file, size_t line, string msg);
-extern (C) void onArrayBoundsError(string file, size_t line);
+extern (C) void onRangeError(string file, size_t line);
extern (C) void onHiddenFuncError(Object o);
extern (C) void onSwitchError(string file, size_t line);
extern (C) bool runModuleUnitTests();
extern (C) void _d_array_bounds(string file, uint line)
{
- onArrayBoundsError(file, line);
+ onRangeError(file, line);
}
extern (C) void _d_switch_error(string file, uint line)
bool trapExceptions = rt_trapExceptions;
- void tryExec(void delegate() dg)
+ void tryExec(scope void delegate() dg)
{
if (trapExceptions)