summaryrefslogtreecommitdiffstats
path: root/generic/tclOO.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-11-01 20:40:55 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-11-01 20:40:55 (GMT)
commit8324cc91dbdb33bfd5799067e96c62769b8fb9c9 (patch)
treec90a2e185468443f2a0436c84d413717c3ea8486 /generic/tclOO.c
parenta7dc229d16889c9f6f66d197d4e0bf1afbec5578 (diff)
downloadtcl-8324cc91dbdb33bfd5799067e96c62769b8fb9c9.zip
tcl-8324cc91dbdb33bfd5799067e96c62769b8fb9c9.tar.gz
tcl-8324cc91dbdb33bfd5799067e96c62769b8fb9c9.tar.bz2
Working towards a BCCed [next].
This version <i>almost</i> works, except for a problem with restoring the context namespace upon return (which produces very strange results!)
Diffstat (limited to 'generic/tclOO.c')
-rw-r--r--generic/tclOO.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/generic/tclOO.c b/generic/tclOO.c
index d6d2d6a..68ed766 100644
--- a/generic/tclOO.c
+++ b/generic/tclOO.c
@@ -437,10 +437,11 @@ InitFoundation(
* ensemble.
*/
- Tcl_CreateObjCommand(interp, "::oo::Helpers::next", TclOONextObjCmd, NULL,
- NULL);
- Tcl_CreateObjCommand(interp, "::oo::Helpers::nextto", TclOONextToObjCmd,
- NULL, NULL);
+ cmdPtr = (Command *) Tcl_NRCreateCommand(interp, "::oo::Helpers::next",
+ NULL, TclOONextObjCmd, NULL, NULL);
+ cmdPtr->compileProc = TclCompileObjectNextCmd;
+ Tcl_NRCreateCommand(interp, "::oo::Helpers::nextto",
+ NULL, TclOONextToObjCmd, NULL, NULL);
cmdPtr = (Command *) Tcl_CreateObjCommand(interp, "::oo::Helpers::self",
TclOOSelfObjCmd, NULL, NULL);
cmdPtr->compileProc = TclCompileObjectSelfCmd;