Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e8fb214910c24d32c0b8a56da5dc0bd06421ae5f
Ticket: ad6696285cacae8f785f394af0f637c2806b66ee
TclOO filters called for unknown and destructors
User & Date: apnadkarni on 2014-07-22 03:25:36
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    I'm not sure whether this is a documentation bug, an implementation one. The documentation states "Filters are not invoked when processing an invocation of the unknown method because of a failure to locate a method implementation, or when invoking either constructors or destructors."
    
    However, the sample below shows filters are called for unknown and for destructors (though apparently not for constructors).
    
    (tcl) 76 % oo::class create C {
    method m {} {puts m}
    method f {args} {puts f; next {*}$args}
    filter f
    method unknown {meth args} {puts unknown}
    }
    ::C
    (tcl) 77 % C create o
    ::o
    (tcl) 78 % o m
    f
    m
    (tcl) 79 % o n
    f
    unknown
    (tcl) 80 % 
    (tcl) 80 % o destroy
    f
    
  5. foundin changed to: "8.6.1"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "apnadkarni"
  13. subsystem changed to: "35. TclOO Package"
  14. title changed to: "TclOO filters called for unknown and destructors"
  15. type changed to: "Bug"