summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2014-01-19 18:39:24 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2014-01-19 18:39:24 (GMT)
commitab8fd1e3f28322c8d57229cd2e171fea351097af (patch)
treeabee7f49bda59eace40abb8b402bd718359b2299 /generic/tclCompile.c
parent8bb7405765b9aed27270dfd145037e3c5884a34a (diff)
downloadtcl-ab8fd1e3f28322c8d57229cd2e171fea351097af.zip
tcl-ab8fd1e3f28322c8d57229cd2e171fea351097af.tar.gz
tcl-ab8fd1e3f28322c8d57229cd2e171fea351097af.tar.bz2
added compilation for [nextto]
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index ee67e24..bd97e3e 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -618,8 +618,18 @@ InstructionDesc const tclInstructionTable[] = {
* Stack: ... cmdName => ... fullOriginalCmdName */
{"tclooNext", 2, INT_MIN, 1, {OPERAND_UINT1}},
- /* Push the identity of the current TclOO object (i.e., the name of
- * its current public access command) on the stack. */
+ /* Call the next item on the TclOO call chain, passing opnd arguments
+ * (min 1, max 255, *includes* "next"). The result of the invoked
+ * method implementation will be pushed on the stack in place of the
+ * arguments (similar to invokeStk).
+ * Stack: ... "next" arg2 arg3 -- argN => ... result */
+ {"tclooNextClass", 2, INT_MIN, 1, {OPERAND_UINT1}},
+ /* Call the following item on the TclOO call chain defined by class
+ * className, passing opnd arguments (min 2, max 255, *includes*
+ * "nextto" and the class name). The result of the invoked method
+ * implementation will be pushed on the stack in place of the
+ * arguments (similar to invokeStk).
+ * Stack: ... "nextto" className arg3 arg4 -- argN => ... result */
{NULL, 0, 0, 0, {OPERAND_NONE}}
};