Manifest of check-in
[701d26870f]
- 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.
by
dgp on
2018-04-22 23:09:47.
B 671a645da40d91519908ab7d8440116b53feccda75aeae53423521d67344211d
C Candidate\sfix\sfor\s[e87bcf819f].\sMakes\ssure\sthe\sunset\sof\sa\sscalar\svariable\nlinked\sto\san\sarray\selement\sterminates\ssearches\son\sthat\sarray.\nIn\sorder\sto\saccomplish\sthis,\ssome\sdeep\srevisions\sin\sVar\shandling\swere\sdone\nand\snew\sroutine\s"Var\s*\sTclArrayContaining(Var\s*varPtr)"\swas\screated\sto\sreturn\nthe\s(Var\s*)\sof\sthe\sarray\sthat\scontains\sthe\s(Var\s*)\svarPtr\sargument\swhen\sit\nis\san\sarray\selement.\sCallers\smust\sverify\sthe\sargument.\n\nThe\sonly\scode\sthat\swas\sunhappy\swith\sthese\sdeep\srevisions\swas\sthe\nvarname\smethod\sof\sTclOO,\sbut\srevising\sit\sto\sthe\snew\ssituation\swas\snot\stoo\ndifficult.\sArguably\sthe\scode\sis\sbetter\snow,\sif\sa\sbit\suglier\sand\sfragile\sto\nfurther\sdeep\sVar\stinkering.\n\nSecond\sparty\sreview\swould\sbe\sa\sgood\sidea,\sas\swell\sas\sopinions\son\swhether\na\sbackport\sto\s8.6.*\sis\swarranted\sto\sfix\scorresponding\sbugs\sin\sthe\sarray\nenumeration\ssuite\sof\scommands.
D 2018-04-22T23:09:47.320
F doc/StringObj.3 e145fba63817e321ab0045ec93c2220201d1045556f22abb9252ab9021968c96
F doc/ToUpper.3 0d75b71c1ce2958de0444e9b7ec355b64ff23b299b9108faacaec26eeac4ee89
F doc/Utf.3 5728bdb4c574b0dfa779db38bf858e448dfdf256a9a7831e82c673d14400b72d
F doc/array.n 86989bf8ace2cc90a093b1ad5db1476f9c5f6a98804992df974d11b11778465e
F doc/string.n 57c16971f53fd9ed4cf785e3c93e995e7b3be59bd56e54fabb0d41e42900e02d
F generic/tcl.decls 932374cc8a4e4773c85a28d48f9e99767f9e268cf5ea2ceaee830f1500827b52
F generic/tcl.h e7d82731e5933c87bcf639fdce5b2112ab635738b2f6520565fb2f25cccb629e
F generic/tclCmdIL.c adcd9f4712232abf05841a7df6dbce2fa5836908545e6cc4b6ab65c69d7484cb
F generic/tclCmdMZ.c 1fc99332bb34b60dc2bea6648169d86bada3221e3aaf02a14f5b436722d903e6
F generic/tclCompCmds.c 4663b845a4ca16b91f8118cdc466ae12a4d28bef3b213f008d6233daf45584ee
F generic/tclDecls.h 637090f0fa2929e5697ec104fde9ee2267246de28e5b6ceb0611bcd8f07f3814
F generic/tclExecute.c 60cd685c9b5d639ee28edf4c7f60dcdda704ba574e2ecea49b80050f0ef64a5b
F generic/tclInt.h 34472e18d84005cb2cacd3190833acf6117a92207af12e05a198d104a0139adb
F generic/tclListObj.c 684126c84949a5047d57e43710b769c15cb8fa5210a1545e6393600452067d3d
F generic/tclOOBasic.c 40878060f1c649ff5d0402151b7d2b49a522504a918bef84de70b65b822801e5
F generic/tclProcess.c 444f933fbbbfcf936a649c47e1e06ecb20e30b5f3e86a459b11b7833d12d0148
F generic/tclScan.c 5ae911f74e1996ac208ff3b989c7c122cf54f8c4097e239954835268f07c528d
F generic/tclStringObj.c 38c4b46476e65ac786b7175886e76edf31ead860aa2a187eafa6381277aaaf95
F generic/tclStringRep.h 52e35a0cd7e3fdea8b8fbd104a9736df82b18d89f887b6defd5c926005bc1f4b
F generic/tclStubInit.c b4c9563b72c7d4a8be5b2f9a8da0a12cc24f1ba3e413b364cba8934b804020bf
F generic/tclTrace.c afff8ca07a60edab49847d44d9cda3f0900fa5f0661138eb6eff845a00a3d883
F generic/tclUtf.c b4aa23654bfbaa3b467ecbc16c3c19fab4318a4c7cdd1697bf48c7f1b49837f1
F generic/tclVar.c b9624e26fef34eb0c81277aa2007ba7c5bc9500bf9002c72f72641a5f8efb1cb
F library/http/http.tcl 26d5ae12e5c7990d109738ad6072ba3af47b22a6b0f079f9650411f1b50ac497
F library/http/pkgIndex.tcl 5db396d016e7d358004a2ab8b1136f598be19ca0a84004e6b26270256cb54cf0
F tests/lrange.test 9f3f498368f3ca1568fe14710d68a82b808ad0f093afea273143f3f87c06c3fc
F tests/msgcat.test 4c94f01e92ea7c66d6aa6b3f685e3bd9643a3629db1fb3bb5a6531c80a6ac25e
F tests/set-old.test 4a6909436dd8b4eedd438c92284b0e3fdca70cc9
F tests/string.test bcb33f5918cf94c802511ad26b845181a1ef9e151a447bc2d7b951070c56e8ba
F tests/var.test 98972dd0b06f42521b2735ae821976ae0f159e5321785d216042dc6f401cdca1
F unix/Makefile.in d60058633d97d46e167f361353e0ac1aa3b048bcb051efc80cd01f1605988a29
F unix/configure 6fefd2d4dfb8ac9b16279903e91544a628846468791f1143f82d7c2fcd77fca4 x
F unix/tcl.m4 100056d65fb56ccba1df3fbccb9a0a563c60c45207397d432d5132e3cd46dc10
F win/Makefile.in f3894ce74fc4345ac0ed0ca7ef7f770fa6657aca0db426ef880f1ce495eb56e0
P 143af13340e394bcc0c56d746e23fd3c01a46a4dfc6b88eb8a5c72ba8c9a1cb5
R da48dc5634f2d6eecff07c0ff9ae42fd
T *branch * bug-e87bcf819f
T *sym-bug-e87bcf819f *
T -sym-core-8-branch *
U dgp
Z b8d607f9cf40c27b0266c422274be008