Struct field destructor not called when exception is thrown in the main struct destructor

Ali Çehreli acehreli at yahoo.com
Fri Oct 16 16:43:02 UTC 2020


On 10/16/20 9:05 AM, Steven Schveighoffer wrote:

 > The destruction of members is outside the destructor's purview. It can't
 > turn the destruction off, so it should logically be considered part of
 > an enclosing function.

Thank you. Makes sense.

Ali



More information about the Digitalmars-d-learn mailing list