Can I circumvent nothrow?

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Apr 26 18:53:14 PDT 2014


On 04/26/2014 06:39 PM, Damian Day wrote:

 > Problem I have is inside "shutdown_system()" I have code that can't
 > possibly be @nothrow because their are a lot of subsystems to shutdown.

You can wrap the contents of shutdown_system() with a try-catch block 
and swallow all exceptions that way.

Ali



More information about the Digitalmars-d-learn mailing list