Overview
| Artifact ID: | 31ead71b260450a60bd3afe56962686365306191 |
|---|---|
| Ticket: | 2662380fffffffffffffffffffffffffffffffff
Bug in append |
| User & Date: | dgp on 2009-04-08 21:42:01 |
Changes
- assignee changed to: "msofer"
- icomment:
I modified the test script so that the "Unsetting" messages reports the value of the variable about to be unset. Then testing on Tcl releases 7.6p2 and 8.3.5, I see they agree on this output: a, test, w Unsetting a(test) = one. a, test, w Unsetting a(test) = two. Without thinking too deeply about it, I admit, that output also makes sense to me. [append] can operate on a name of a non-existent variable, creating the variable by making the appending write to it. Write traces come after the writing, so at that point the variable exists, and the trace can unset it. We end up back where we started with no existing variable. Multiple arguments to append just means we repeat the cycle. Appears this report is exposing some flaws in some of the varName resolution caching machinery that's come in releases 8.4 and later. Fixing that right may take some time and thought (*), and since it appears the claims of "crashes" are incorrect, I'll leave this one to come back to. The submitted patches may well be the right answer, I'm not sure yet, but the flaws exposed are broader and deeper, so I'd prefer to be more certain about a more complete fix. (*) or at least some input from msofer. :)
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"