Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2b003b1e12b9df51312a67c92a08c53202c1c32ae1e1087e112b7706e119ebf0
Ticket: 135804138e33ff05b89f06101008113c86156322
TclOO segmentation fault: direct call to a method called by the object destructor, and that deletes the object via [rename] before calling [next]
User & Date: aku on 2019-11-13 21:35:26
Changes

  1. icomment:
    I suspect that the script should be:
    
    oo::class create c1 {
        method m1 {} {}
    }
    
    oo::class create c2 {
        superclass c1
        destructor {
            my m1
        }
        method m1 {} {
            my m2
            next
        }
        method m2 {} {
            rename [self] {}
        }
    }
    
    c2 create obj1
    obj1 m1
    
  2. login: "aku"
  3. mimetype: "text/plain"