summaryrefslogtreecommitdiffstats
path: root/generic/tclOO.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-10-19 14:17:18 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-10-19 14:17:18 (GMT)
commita584e5f052e71147186d2607dfc67e1e8c7e19c3 (patch)
tree9acfedf6c37e529d4f62831e62de906fb972fb6f /generic/tclOO.c
parent54e225f3822c411dcc47823a5b01e22e2ce24f47 (diff)
downloadtcl-a584e5f052e71147186d2607dfc67e1e8c7e19c3.zip
tcl-a584e5f052e71147186d2607dfc67e1e8c7e19c3.tar.gz
tcl-a584e5f052e71147186d2607dfc67e1e8c7e19c3.tar.bz2
yet another small introspector: [self]
Diffstat (limited to 'generic/tclOO.c')
-rw-r--r--generic/tclOO.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/tclOO.c b/generic/tclOO.c
index 04a2bf7..d6d2d6a 100644
--- a/generic/tclOO.c
+++ b/generic/tclOO.c
@@ -314,6 +314,7 @@ InitFoundation(
Foundation *fPtr = ckalloc(sizeof(Foundation));
Tcl_Obj *namePtr, *argsPtr, *bodyPtr;
Tcl_DString buffer;
+ Command *cmdPtr;
int i;
/*
@@ -440,8 +441,9 @@ InitFoundation(
NULL);
Tcl_CreateObjCommand(interp, "::oo::Helpers::nextto", TclOONextToObjCmd,
NULL, NULL);
- Tcl_CreateObjCommand(interp, "::oo::Helpers::self", TclOOSelfObjCmd, NULL,
- NULL);
+ cmdPtr = (Command *) Tcl_CreateObjCommand(interp, "::oo::Helpers::self",
+ TclOOSelfObjCmd, NULL, NULL);
+ cmdPtr->compileProc = TclCompileObjectSelfCmd;
Tcl_CreateObjCommand(interp, "::oo::define", TclOODefineObjCmd, NULL,
NULL);
Tcl_CreateObjCommand(interp, "::oo::objdefine", TclOOObjDefObjCmd, NULL,