Postmortem: Template unittests are bad & you shouldn't catch Error

Adam D. Ruppe destructionator at gmail.com
Thu Oct 22 20:38:32 UTC 2020


On Thursday, 22 October 2020 at 20:23:49 UTC, Ali Çehreli wrote:
> 1) Thread entry functions should catch and report any 
> Throwable. Otherwise, main thread will see only a timeout and 
> stack trace of the worker will lost.

Worth remembering catching actually loses valuable information 
when running in a debugger and/or with core dumps enabled.

If you did want to do this, at a minimum it would have to honor 
the DRT-trapExceptions value.


More information about the Digitalmars-d mailing list