Problem with allowing exceptions to be thrown from dtors

Sean Kelly sean at f4.ca
Sun Apr 16 12:43:07 PDT 2006


Stewart Gordon wrote:
> Walter Bright wrote:
> 
>> Allowing an uncaught exception to escape a destructor is always a bad 
>> idea, and should be explicitly illegal.
> 
> With function calls, DBC, ABC and the like to consider, how do you think 
> you're going to get on with enforcing such legislation?

Easy.  In the runtime code that calls dtors.  Most or all of this could 
be done by adding a few lines to _d_delclass.


Sean



More information about the Digitalmars-d-bugs mailing list