Class destructors - clarify what is safe
H. S. Teoh
hsteoh at qfbox.info
Sun Feb 15 09:56:23 UTC 2026
On Sun, Feb 15, 2026 at 09:30:12AM +0000, Forum User via Digitalmars-d-learn wrote:
[...]
> Is it possible that during stack unwinding the GC kicks in and
> destroys an exception object before it is caught?
No, why would it? An exception in flight is not a dead object (otherwise
the catch block wouldn't be able to catch it), it will not be collected.
T
--
Perhaps the most widespread illusion is that if we were in power we would behave very differently from those who now hold it---when, in truth, in order to get power we would have to become very much like them. -- Unknown
More information about the Digitalmars-d-learn
mailing list