Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f292ac7c89e49d8d8c42b097af0bf7da658c7193
Ticket: 533907ffffffffffffffffffffffffffffffffff
Tcl_EvalObjv: huh?!
User & Date: dgp on 2002-03-23 05:16:19
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
  4. foundin changed to: "obsolete: 8.4a5"
  5. priority changed to: "7 High"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "45. Parsing and Eval"
  10. title changed to: "Tcl_EvalObjc: huh?!"
  11. type changed to: "Bug"