Overview
| Artifact ID: | 5c8f76762934189a765ac958fe45f41daa0a2c046cdfe3e796d3b1666feac48b |
|---|---|
| Ticket: | e87bcf819f03cea4e35dca24cac7228766f53b0f
[array for] fails to detect array change made through upvar |
| User & Date: | dkf on 2018-05-07 15:56:29 |
Changes
- icomment:
And the bug is that the unset isn't killing the searches, and that's because the variable link is meaning that we're arriving at the element (which knows that it is in a TclVarHashTable) without going back to check if this makes things become invalidated. Which it can't do because we don't currently keep a pointer to the containing variable in the TclVarHashTable (the pointer could be NULL for non-array use cases, I guess). I don't know what the consequences of keeping such a pointer would be, apart from a small amount of extra memory usage. <p> The first option is correct; an error <i>should</i> be thrown by <tt>array for</tt> on internal modification.
- login: "dkf"
- mimetype: "text/html"