diff options
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r-- | generic/tclExecute.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c index 8793312..472ed7f 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.c @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclExecute.c,v 1.358 2007/12/17 15:28:27 msofer Exp $ + * RCS: @(#) $Id: tclExecute.c,v 1.359 2008/01/16 19:44:13 msofer Exp $ */ #include "tclInt.h" @@ -1228,6 +1228,13 @@ Tcl_ExprObj( const char *string = TclGetStringFromObj(objPtr, &length); TclInitCompileEnv(interp, &compEnv, string, length, NULL, 0); + + /* + * TODO: Consider creating and calling an alternative routine + * that will compile bytecode for one-off expressions like this + * one with optimize==0, for improved efficiency. + */ + TclCompileExpr(interp, string, length, &compEnv); /* |