Custom default exception handler?

Adam D. Ruppe destructionator at gmail.com
Mon Feb 10 19:57:42 PST 2014


On Tuesday, 11 February 2014 at 03:53:05 UTC, Nick Sabalausky 
wrote:
> I don't suppose there's a way to change the default exception 
> handler without using a modified druntime

I'm pretty sure there used to be, but not anymore looking at the 
source. The d_run_main function has a hardcoded catch block.

Why do you need to change the default though? Can't you just wrap 
your own main function in a big try/catch block?


More information about the Digitalmars-d-learn mailing list