RFC: Change what assert does on error
Steven Schveighoffer
schveiguy at gmail.com
Sun Jun 29 18:23:38 UTC 2025
On Sunday, 29 June 2025 at 18:04:51 UTC, Richard (Rikki) Andrew
Cattermole wrote:
> Should an assert fail, the most desirable behaviour for it to
> have is to print a backtrace if possible and then immediately
> kill the process.
>
> What a couple of us are suggesting is that we change the
> default behaviour from ``throw AssertError``.
> To: ``printBacktrace; exit(-1);``
Full agreement.
-Steve
More information about the Digitalmars-d
mailing list