Overview
| Artifact ID: | d16a1625913c4987ed3be9bcf2498b2a74884c4f |
|---|---|
| Ticket: | ad6696285cacae8f785f394af0f637c2806b66ee
TclOO filters called for unknown and destructors |
| User & Date: | apnadkarni on 2014-07-22 03:30:46 |
Changes
- 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"