Artifacts Associated With Ticket ad6696285c
Ticket change [e8fb214910] (rid 138914) by apnadkarni on 2014-07-22 03:25:36:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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 - foundin initialized to: "8.6.1"
- is_private initialized to: "0"
- login: "apnadkarni"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "apnadkarni"
- subsystem initialized to: "35. TclOO Package"
- title initialized to: "TclOO filters called for unknown and destructors"
- type initialized to: "Bug"
Ticket change [d16a162591] (rid 138915) by apnadkarni on 2014-07-22 03:30:46:
- 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. - login: "apnadkarni"
- mimetype: "text/plain"
- comment changed to:
Ticket change [f68a113943] (rid 139043) by apnadkarni on 2014-07-31 14:16:10:
- assignee changed to: "dkf"
- login: "apnadkarni"
- mimetype: "text/plain"
Ticket change [e141d9bf17] (rid 139291) by dkf on 2014-08-17 16:28:43:
- 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.
- login: "dkf"
- mimetype: "text/html"
- username: "dkf"
- icomment:
Ticket change [b427ffda7c] (rid 139838) by dkf on 2014-09-11 12:32:59:
- login: "dkf"
- mimetype: "text/plain"
- priority changed to: "6"
Ticket change [9fcc53cdd5] (rid 139907) by dkf on 2014-09-14 11:12:40:
- 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.
- login: "dkf"
- mimetype: "text/html"
- icomment:
Ticket change [cf0828a5d8] (rid 139908) by dkf on 2014-09-14 11:13:14:
- login: "dkf"
- mimetype: "text/plain"
- priority changed to: "8"
Ticket change [1d65410151] (rid 141813) by dkf on 2015-05-17 12:04:39:
- 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).
- login: "dkf"
- mimetype: "text/html"
- priority changed to: "6"
- icomment:
Ticket change [553d525e75] (rid 141819) by dkf on 2015-05-17 12:57:12:
- icomment:
Corrected the documentation to say that filters are called for unknown method processing. Simpler than changing the current implementation.
- login: "dkf"
- mimetype: "text/html"
- username: "dkf"
- icomment:
Ticket change [1e841d6910] (rid 141820) by dkf on 2015-05-17 12:57:26:
- closedate changed to: "2457160.03989473"
- closer changed to: "dkf"
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"