[dmd-concurrency] Shutdown protocol

Michel Fortin michel.fortin at michelf.com
Fri Jan 22 11:40:23 PST 2010


Le 2010-01-21 à 15:11, Sean Kelly a écrit :

> On Jan 21, 2010, at 10:59 AM, Steve Schveighoffer wrote:

This is misquoted, my name should be up here. (Also the subject changed, I wonder what happened.)

>> Le 2010-01-21 à 13:43, Andrei Alexandrescu a écrit :
>> 
>>> But in that case I think we should make Terminate inherit Error, not Exception. That way just writing catch (Exception e) won't catch Terminate. Agree?
>> 
>> I disagree about inheriting from Error: Terminate isn't an error. You're probably right that it shouldn't be an Exception, so in that case it should inherit from Throwable, not Error.
> 
> It's been suggested that Throwable be removed and Exception derive from Error.

But then the same problem arise: should someone catching errors also catch Terminate? Terminate isn't an error. That doesn't prevent Exception from deriving from Error though.

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/





More information about the dmd-concurrency mailing list