Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f2b38e2b721473764021340c8f5562a144a2060bd92f70405f485ede58d93002
Ticket: 29aa1c7b13a6c04400ba1c113d53201f483095f1
Mixed-in destructors aren't called
User & Date: stu on 2018-07-17 19:15:02
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    It's also possible that I don't understand what I'm doing.
    
    oo::class create A {destructor {puts a;catch {next}}}
    oo::class create B {destructor {puts b};mixin A}
    oo::class create C {destructor {puts c}}
    foreach i {a b c} {set $i [[string totitle $i] new]}
    oo::objdefine $c mixin -append A
    foreach i {a b c} {puts $i:;[set $i] destroy}
    
    In the output I expect to see:
    c:
    a
    c
    
  5. foundin changed to: "current"
  6. is_private changed to: "0"
  7. login: "stu"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "36034badbf4fa68e1e6f55bc81729916152660a8"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "stu"
  14. subsystem changed to: "10. Objects"
  15. title changed to: "Mixed-in destructors aren't called"
  16. type changed to: "Bug"