Disallow catch without parameter ("LastCatch")

BCS none at anon.com
Tue Oct 27 13:50:22 PDT 2009


Hello grauzone,

> PS: I wonder, should the runtime really execute finally blocks if an
> "Error" exception is thrown? (Errors are for runtime errors, Exception
> for normal exceptions.) Isn't it dangerous to execute arbitrary user
> code in presence of what is basically an internal error?
> 

If a thrown Error doesn't run finally blocks you will have a very hard time 
arguing for catch working and once those don't happen it might as well kill 
-9 the process so why even have it in the first place?





More information about the Digitalmars-d mailing list