[Issue 15246] Destructor inheritance doesn't inherit attributes properly

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Oct 26 13:57:50 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=15246

--- Comment #3 from Andrei Alexandrescu <andrei at erdani.com> ---
(In reply to Marco Leise from comment #1)
> You are assuming that destructors are inherited and there is an implicit
> super-call, but they are actually chained and called one after another from
> outer to inner. Under the current language semantics this bug report is
> invalid.

I agree I am using terminology loosely; newly introduced destructors don't only
override the existing ones, they also call them. But I don't see how that makes
the bug report invalid.

--


More information about the Digitalmars-d-bugs mailing list