Overview
| Artifact ID: | f292ac7c89e49d8d8c42b097af0bf7da658c7193 |
|---|---|
| Ticket: | 533907ffffffffffffffffffffffffffffffffff
Tcl_EvalObjv: huh?! |
| User & Date: | dgp on 2002-03-23 05:16:19 |
Changes
- assignee changed to: "msofer"
- cmimetype changed to: "text/plain"
- comment changed to:
The routine Tcl_EvalObjv is a monstrosity of obfuscation. Surely we can rewrite it to be more clear. If I'm deciphering it correctly, it appears that when evaluation returns TCL_ERROR, then Tcl_LogCommandInfo will be called -- *EXCEPT* when it has been detected that a trace on the command might be in place. In that case, cmdLen will not be zero, and the "goto cmdtraced" will not be taken. That's good, because we don't need to generate the cmdString since it's already done. But it's bad because without that goto, we fall out of the switch and never call Tcl_LogCommandInfo, which is what we constructed the cmdString for in the first place! Recent efforts to improve command tracing (TIPs 32, 79) and pending efforts to expose command tracing at the script level (TIP 62) will make it more important to get this case correctly handled.
- foundin changed to: "obsolete: 8.4a5"
- priority changed to: "7 High"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "45. Parsing and Eval"
- title changed to: "Tcl_EvalObjc: huh?!"
- type changed to: "Bug"