What should happen when the assert message expression throws?

Patrick Schluter Patrick.Schluter at bbox.fr
Fri Nov 18 13:06:56 UTC 2022


On Friday, 18 November 2022 at 12:36:14 UTC, RazvanN wrote:
> I have stumbled upon: 
> https://issues.dlang.org/show_bug.cgi?id=17226
>
> [...]

I question if a fix is even required. It's a bug in the program 
that has to be corrected in any case. When it is corrected, the 
assert() will manifest itself and can then be corrected also. 
When debugging a program, I always concentrate on the first 
error/bug/exception as very often subsequent 
errors/bugs/exceptions were more often than not just consequences 
of undefined behaviour of the initial error.

So a "won't fix" is an appropriate approach imho if a correction 
involves a much to costly fix.


More information about the Digitalmars-d mailing list