RFC: Change what assert does on error

Walter Bright newshound2 at digitalmars.com
Fri Jul 4 19:31:57 UTC 2025


On 7/4/2025 11:49 AM, Timon Gehr wrote:
> With: It writes a file with the full interaction log that leads to the crash.

Cleanup code is what is happening following the crash. If you're logging, it 
would be the entry code to the function, not the cleanup. What you can do is 
collect and log a stack trace, but that isn't cleanup code.

> The user can see the stack trace in a console window that is kept open using 
> `system("pause")`. They can send the data to me and I can immediately reproduce 
> the issue and fix the crash within 24 hours.

I'm not objecting to a stack trace.



More information about the Digitalmars-d mailing list