diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2011-05-25 13:35:37 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2011-05-25 13:35:37 (GMT) |
commit | 975d5d10523f82a1726f07c8836051d92f2e68fc (patch) | |
tree | 66985fe8898ea0617e9fdf977923ca63d85c4389 /doc/next.n | |
parent | 8e276cb91a71c38841daa2c04478e115a1481d15 (diff) | |
download | tcl-975d5d10523f82a1726f07c8836051d92f2e68fc.zip tcl-975d5d10523f82a1726f07c8836051d92f2e68fc.tar.gz tcl-975d5d10523f82a1726f07c8836051d92f2e68fc.tar.bz2 |
Implementation of TIP #381: Call Chain Introspection and Control
Diffstat (limited to 'doc/next.n')
-rw-r--r-- | doc/next.n | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -15,6 +15,7 @@ next \- invoke superclass method implementations package require TclOO \fBnext\fR ?\fIarg ...\fR? +\fBnextto\fI class\fR ?\fIarg ...\fR? .fi .BE @@ -30,6 +31,13 @@ of the next method in the method chain; if there are no further methods in the method chain, the result of \fBnext\fR will be an error. The arguments, \fIarg\fR, to \fBnext\fR are the arguments to pass to the next method in the chain. +.PP +The \fBnextto\fR command is the same as the \fBnext\fR command, except that it +takes an additional \fIclass\fR argument that identifies a class whose +implementation of the current method chain (see \fBinfo object call\fR) should +be used; the method implementation selected will be the one provided by the +given class, and it must refer to an existing non-filter invocation that lies +further along the chain than the current implementation. .SH "THE METHOD CHAIN" .PP When a method of an object is invoked, things happen in several stages: |