On Thursday, 7 March 2013 at 21:31:48 UTC, D-ratiseur wrote:
Hello, is it possible to hide an exception with an empty "catch"
block ?
---
try{
    //somestuff
}
catch{
   // an error ocurred but make someotherstuff and continue
}
---
I'm in a console program and running some unittests with the
-debug switch also set(but I don't debug I just run the appli.).
the console app does not continue while I would need the appli to
get on running. Actually I need to determinate if a segmentation
error is triggered in the try block or not and let the program
continue. But the program always stops...
Is it possible ? How could I shut down an exception in D ?

According to the grammar, try { } catch(...) {} is supposed t work. I never tested it, so I can't really say more.

Reply via email to