April 09, 2021 [Issue 21693] extern(C++) class instance dtors are never called, breaking RAII | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21693 --- Comment #10 from Dlang Bot <dlang-bot@dlang.rocks> --- dlang/dmd pull request #12408 "Merge stable into master" was merged into master: - 939778e46731edc6c4f726dda7f82aaa209d012e by Florian: Issue 21693 - Lower scoped destruction of extern(C++) class to destroy/dtor call (#12265) * Issue 21693 - Lower scoped destruction of extern(C++) class to destroy Ensures proper RAII behaviour for stack allocated instances but doesn't affect the behaviour for heap allocated instances. The previous rewrite used `delete` which relies on `TypeInfo` and crashed at runtime. Using `object.destroy` circumvents this issue (and is also beneficial due to the deprecation of `delete`). `destroy` can be used instead of `delete` because the instances live on the heap and hence don't need to be deallocated. https://github.com/dlang/dmd/pull/12408 -- |
December 17, 2022 [Issue 21693] extern(C++) class instance dtors are never called, breaking RAII | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21693 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P2 -- |
December 13 [Issue 21693] extern(C++) class instance dtors are never called, breaking RAII | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21693 --- Comment #11 from dlangBugzillaToGithub <robert.schadek@posteo.de> --- THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19883 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB -- |
Copyright © 1999-2021 by the D Language Foundation