diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-10-19 14:17:18 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-10-19 14:17:18 (GMT) |
commit | 72693da145d4b3a7f165eb5cdff0bd0defb87993 (patch) | |
tree | 9acfedf6c37e529d4f62831e62de906fb972fb6f /generic/tclOO.c | |
parent | 8f82c0e9f68bc243d27e129a7163a122e5cf254b (diff) | |
download | tcl-72693da145d4b3a7f165eb5cdff0bd0defb87993.zip tcl-72693da145d4b3a7f165eb5cdff0bd0defb87993.tar.gz tcl-72693da145d4b3a7f165eb5cdff0bd0defb87993.tar.bz2 |
yet another small introspector: [self]
Diffstat (limited to 'generic/tclOO.c')
-rw-r--r-- | generic/tclOO.c | 6 |
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, |