[Issue 19119] App crashes with strange behavior of ctors/dtors from CPP

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 27 08:20:38 UTC 2018


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

--- Comment #5 from Vladimir Marchevsky <vladimmi at gmail.com> ---
Sorry if it's not useful, just want to point out couple of things from my
perspective as language newcomer that may hint something for you:

1) Example in ticket works when Foo::~Foo is not virtual. So does in that case
D know how to destroy CPP classes and is it "virtual" causing some troubles?

2) Example in ticket also works in other case - Foo::~Foo is virtual but Foo
doesnt contain Bar. Why implementation details (Bar isnt even exported and
mapped in D) do some changes to behavior?

--


More information about the Digitalmars-d-bugs mailing list