RFC: Change what assert does on error

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Tue Jul 8 07:48:54 UTC 2025


On 08/07/2025 6:20 PM, Sebastiaan Koppe wrote:
> If D can't gracefully shutdown a multi-threaded program when an Error 
> occurs - i.e. catch the Error at the entry point of a thread, send 
> upwards to the main thread and cancel any threads or other execution 
> contexts (e.g. GPU) - then the only sane recommendation is to avoid all 
> asserts or call abort on the spot. Which would be very unfortunate.

Not just asserts, this also includes things like bounds checks...

The entire Error hierarchy would need to go and that is not realistic.


More information about the Digitalmars-d mailing list