Destroy All Memory Corruption
Paul Backus
snarwin at gmail.com
Sat Apr 24 21:53:37 UTC 2021
On Saturday, 24 April 2021 at 18:16:51 UTC, IGotD- wrote:
> One remark I found interesting regarding reference counting.
>
> "In order to properly run the destructor, you have to run the
> destructor in an exception handler"
>
> Why do you need to run the destructor in an exception handler?
I assume it's to ensure that objects are destroyed properly when
unwinding the stack. Might be possible to avoid in `nothrow` code.
More information about the Digitalmars-d-announce
mailing list