runtime hook for Crash on Error

deadalnix deadalnix at gmail.com
Fri Jun 1 11:58:17 PDT 2012


Le 01/06/2012 12:15, Walter Bright a écrit :
> On 6/1/2012 12:45 AM, Jens Mueller wrote:
>> This is perfectly valid when developing such critical systems. But
>> limiting D to effectively only allow developing such particular systems
>> cannot be the appropriate response. There are plenty of other systems
>> that do not operate in such a constrained environment.
>
> You can catch thrown asserts if you want, after all, D is a systems
> programming language. But that isn't a valid way to write robust software.
>

No, you can't because this is planed to be half broken with error, on 
the fallacy that the program can be in corrupted state.

If your program is in corrupted state, throwing an error is already a 
stupid idea. Good luck unwinding a corrupted stack.

What is needed here is a flag to HALT on error, that is used for 
critical systems.


More information about the Digitalmars-d mailing list