Overview
| Artifact ID: | 1224c1fd3e02d528b18fddf4ab8d89a6a8c329c1658fbb3c9c4ae8e57599ab94 |
|---|---|
| Ticket: | 29aa1c7b13a6c04400ba1c113d53201f483095f1
Mixed-in destructors aren't called |
| User & Date: | aspect on 2018-07-19 09:03:30 |
Changes
- icomment:
Simpler example: oo::class create A {destructor {puts a;next}} oo::class create C {destructor {puts c}} C create c oo::objdefine c mixin -append A c destroy # output: c The destructor defined in A is never called. This seems suspicious .. though note a constructor defined in A will never be called, so maybe it's correct by symmetry. Should be documented and covered with a test either way. Note that you can achieve the desired effect a different way: oo::define A method destroy {} {puts aa; next} - login: "aspect"
- mimetype: "text/plain"