Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f47e81c687b32590974dc9b7a309b3e82b8e7531
Ticket: 949507ffffffffffffffffffffffffffffffffff
ObjResult feedback loop?
User & Date: bgriffin on 2004-05-06 21:16:41
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I pulled the following code out of tkDND:
    
      if (Tcl_GetIndexFromObj(infoPtr->interp, 
               Tcl_GetObjResult(infoPtr->interp),
                   Actions, "action", 0, &index) == TCL_OK) {
    
    I'm sorry I don't have a reproducable testcase for you,
    but, Is it reasonable and legal to pass an ObjResult
    object into a function this way or should the ObjResult
    object be dupped first?
    
    The problem is that if GetIndex reports an error, it
    will write to the interp result object and in this
    case, one of the strings appended to the result string
    is the result string itself (i.e. the passed in Obj!)
    
    So, is this a bug?  a feature?  abuse of the API?
    
    -Brian
    
  4. foundin changed to: "obsolete: 8.4.5"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "bgriffin"
  9. subsystem changed to: "10. Objects"
  10. title changed to: "ObjResult feedback loop?"
  11. type changed to: "Bug"