Problem with allowing exceptions to be thrown from dtors
sean at f4.ca
Sun Apr 16 12:44:33 PDT 2006
Sean Kelly wrote:
> 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.
Er... I meant _d_callfinalizer, but it amounts to tbe same thing.
More information about the Digitalmars-d-bugs