runtime hook for Crash on Error

Timon Gehr timon.gehr at gmx.ch
Thu Jun 7 05:11:17 PDT 2012


On 06/07/2012 12:11 AM, Lars T. Kyllingstad wrote:
> On Wednesday, 6 June 2012 at 21:05:51 UTC, Jonathan M Davis wrote:
>> ...
>> Having a mechanism which allows you to allocate without throwing OOM
>> is great
>> for the cases where someone actually needs, it but I'm _completely_
>> against
>> requiring it anywhere.
>
> You're probably right. Besides, I just browsed through core/exception.d,
> and it seems that my list of Errors was far from exhaustive. In addition
> to OutOfMemoryError, AssertError and RangeError, there is FinalizeError,
> HiddenFuncError, InvalidMemoryOperationError and SwitchError. Working
> around nothrow for all of those would be painful.
>
> SwitchError should probably be deprecated, by the way.
>
> -Lars

HiddenFuncError should be deprecated as well.


More information about the Digitalmars-d mailing list