summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-11-02 18:13:20 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-11-02 18:13:20 (GMT)
commitce7c13b7962d2ebcd432dfb05fffe812c4d172d2 (patch)
tree51f3474d6aea4c638b7abdc0ee79609ab7fccd98 /generic/tclCompile.c
parenta7dc229d16889c9f6f66d197d4e0bf1afbec5578 (diff)
downloadtcl-ce7c13b7962d2ebcd432dfb05fffe812c4d172d2.zip
tcl-ce7c13b7962d2ebcd432dfb05fffe812c4d172d2.tar.gz
tcl-ce7c13b7962d2ebcd432dfb05fffe812c4d172d2.tar.bz2
Added more TclOO introspection bytecodes ([info object class], [info object namespace]). Also moved TclOO-in-8.6 to using the main Tcl internal ensemble builder.
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index ee8511c..d47e0f6 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -487,6 +487,14 @@ InstructionDesc const tclInstructionTable[] = {
{"tclooSelf", 1, +1, 0, {OPERAND_NONE}},
/* Push the identity of the current TclOO object (i.e., the name of
* its current public access command) on the stack. */
+ {"tclooClass", 1, 0, 0, {OPERAND_NONE}},
+ /* Push the class of the TclOO object named at the top of the stack
+ * onto the stack.
+ * Stack: ... object => ... class */
+ {"tclooNamespace", 1, 0, 0, {OPERAND_NONE}},
+ /* Push the namespace of the TclOO object named at the top of the
+ * stack onto the stack.
+ * Stack: ... object => ... namespace */
{NULL, 0, 0, 0, {OPERAND_NONE}}
};