Overview
| Artifact ID: | 7f5a5ce47053f43d3721732316cbe8c90dc3317ced17df1b8440d95b0b7cfb49 |
|---|---|
| Ticket: | 02977e0004c72049ed3324fe35f8634bfeede8e6
test oo-1.23 fails |
| User & Date: | dkf on 2024-10-27 11:27:51 |
Changes
- comment changed to:
Test `oo-1.23` fails, and is hard to fix because the order of destruction of the insides of an object is sensitive. Tests `oo-0.2` and `oo-12.8` seem to act as canaries for getting it wrong (but that's just from experimenting with trying to fix this bug). Note the related `oo-1.22` which checks destruction order.
- icomment:
OK, the *primary* problem (`oo-1.23`) is that the teardown process of an object can trigger the teardown process of other objects recursively, and you can string this together arbitrarily deep. The *secondary* problem (`oo-12.8` and others) is that a class's instances must complete their teardown (at least as far as running the destructor) before the class is destroyed. This makes simple queueing of calls to `Tcl_DeleteNamespace()` not be enough.
- login: "dkf"
- mimetype: "text/x-markdown"