Skip to content
Tcl Source Code History Of Ticket ad6696285cacae8f
Login

History Of Ticket ad6696285cacae8f

Artifacts Associated With Ticket ad6696285cacae8f

  1. Ticket change [e8fb214910] (rid 138914) by apnadkarni on 2014-07-22 03:25:36:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized 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 initialized to: "8.6.1"
    6. is_private initialized to: "0"
    7. login: "apnadkarni"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "apnadkarni"
    13. subsystem initialized to: "35. TclOO Package"
    14. title initialized to: "TclOO filters called for unknown and destructors"
    15. type initialized to: "Bug"
  2. Ticket change [d16a162591] (rid 138915) by apnadkarni on 2014-07-22 03:30:46:

    1. 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
      
      By the way, [info object call o n] also reflects this.
      
    2. login: "apnadkarni"
    3. mimetype: "text/plain"
  3. Ticket change [f68a113943] (rid 139043) by apnadkarni on 2014-07-31 14:16:10:

    1. assignee changed to: "dkf"
    2. login: "apnadkarni"
    3. mimetype: "text/plain"
  4. Ticket change [e141d9bf17] (rid 139291) by dkf on 2014-08-17 16:28:43:

    1. icomment:
      Side note: <tt>info object call</tt> uses the identical datastructure to the actual call mechanism; it generates a call chain and introspects it instead of generating it and calling along it. (<tt>self call</tt> looks at the current call chain.) It should be enough to just look at the chain without calling it; it still exercises the same builder code.
      
    2. login: "dkf"
    3. mimetype: "text/html"
    4. username: "dkf"
  5. Ticket change [b427ffda7c] (rid 139838) by dkf on 2014-09-11 12:32:59:

    1. login: "dkf"
    2. mimetype: "text/plain"
    3. priority changed to: "6"
  6. Ticket change [9fcc53cdd5] (rid 139907) by dkf on 2014-09-14 11:12:40:

    1. icomment:
      Filters definitely shouldn't be called in the destructor chain. That would be an outright bug.
      <p>
      If they're called in the unknown chain, I might leave that in and alter the docs.
      
    2. login: "dkf"
    3. mimetype: "text/html"
  7. Ticket change [cf0828a5d8] (rid 139908) by dkf on 2014-09-14 11:13:14:

    1. login: "dkf"
    2. mimetype: "text/plain"
    3. priority changed to: "8"
  8. Ticket change [1d65410151] (rid 141813) by dkf on 2015-05-17 12:04:39:

    1. icomment:
      And now I've looked again, the filter is <i>not</i> being called for the destructor. It's being called for the <tt>destroy</tt> method, which is a conventional method (that happens to kill the current object).
      
    2. login: "dkf"
    3. mimetype: "text/html"
    4. priority changed to: "6"
  9. Ticket change [553d525e75] (rid 141819) by dkf on 2015-05-17 12:57:12:

    1. icomment:
      Corrected the documentation to say that filters are called for unknown method processing. Simpler than changing the current implementation.
      
    2. login: "dkf"
    3. mimetype: "text/html"
    4. username: "dkf"
  10. Ticket change [1e841d6910] (rid 141820) by dkf on 2015-05-17 12:57:26:

    1. closedate changed to: "2457160.03989473"
    2. closer changed to: "dkf"
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. resolution changed to: "Fixed"
    6. status changed to: "Closed"