Overview
| Comment: | Candidate fix for [e87bcf819f]. Makes sure the unset of a scalar variable linked to an array element terminates searches on that array. In order to accomplish this, some deep revisions in Var handling were done and new routine "Var * TclArrayContaining(Var *varPtr)" was created to return the (Var *) of the array that contains the (Var *) varPtr argument when it is an array element. Callers must verify the argument. The only code that was unhappy with these deep revisions was the varname method of TclOO, but revising it to the new situation was not too difficult. Arguably the code is better now, if a bit uglier and fragile to further deep Var tinkering. Second party review would be a good idea, as well as opinions on whether a backport to 8.6.* is warranted to fix corresponding bugs in the array enumeration suite of commands. |
|---|---|
| Timelines: | family | ancestors | descendants | both | bug-e87bcf819f |
| Files: | files | file ages | folders |
| SHA3-256: |
701d26870f3360783ea3b2b19ce2bf22 |
| User & Date: | dgp on 2018-04-22 23:09:47.320 |
| Other Links: | branch diff | manifest | tags |
Context
|
2018-04-22
| ||
| 23:16 | Add a test for the compiled pathway. check-in: 08a3816456 user: dgp tags: bug-e87bcf819f | |
| 23:09 | Candidate fix for [e87bcf819f]. Makes sure the unset of a scalar variable linked to an array element... check-in: 701d26870f user: dgp tags: bug-e87bcf819f | |
| 13:27 | merge 8.6 check-in: 143af13340 user: dgp tags: core-8-branch | |
Changes
Modified generic/tclInt.h
from [7024fa6e51]
to [34472e18d8].
[diff]
Modified generic/tclOOBasic.c
from [27fac85947]
to [40878060f1].
[diff]
Modified generic/tclVar.c
from [7fe30d6bc9]
to [b9624e26fe].
[diff]
Modified tests/var.test
from [2026678138]
to [98972dd0b0].
[diff]