Overview
| Artifact ID: | f47e81c687b32590974dc9b7a309b3e82b8e7531 |
|---|---|
| Ticket: | 949507ffffffffffffffffffffffffffffffffff
ObjResult feedback loop? |
| User & Date: | bgriffin on 2004-05-06 21:16:41 |
Changes
- assignee changed to: "msofer"
- cmimetype changed to: "text/plain"
- 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 - foundin changed to: "obsolete: 8.4.5"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "bgriffin"
- subsystem changed to: "10. Objects"
- title changed to: "ObjResult feedback loop?"
- type changed to: "Bug"