Skip to content
Tcl Source Code Artifact [1e20552e8e]
Login

Artifact [1e20552e8e]

Artifact 1e20552e8edd117c3eda20beb1cfa68de9c3fd38:

Ticket change [1e20552e8e] - Ticket [2969488fffffffff|2969488fff] <i>trace variable doesn&#39;t fire if you upvar to an array element</i> status still Open with 4 other changes by ferrieux on 2010-03-13 00:22:21.
D 2010-03-13T00:22:21
J icomment Hmm,\sI\sthink\sit's\snot\sas\sunsolvable\sas\sit\sseems.\nThe\stest\sTclIsVarDirectWritable(varPtr)\sis\scurrently:\n\n\s\s\s\s!((varPtr)->flags\s&\s(VAR_ARRAY|VAR_LINK|VAR_TRACED_WRITE|VAR_DEAD_HASH))\n\nand\sin\sthis\scase\sit\sreturns\s'true'\sbecause\sthe\slinked\sarray\selement's\sflags\sare\sonly\n\n\s\s\sVAR_ARRAY_ELEMENT\s|\sVAR_IN_HASHTABLE\n\nNow,\sI\sbelieve\swe\scan\sstill\sreach\sthe\scontaining\sarray\swith\smoderate\sadditional\scomplexity\s,\sbecause\sthe\s\sVAR_IN_HASHTABLE\sshows\sthat\sthe\s(Var\s*)\sis\sin\sfact\sa\s(VarInHash\s*),\swhose\sentry->tablePtr\sis\sthe\sarray's\sbacking\shashtable.\sDunno\sexactly\show\seasily\swe\scould\sclimb\sback\sfrom\shashtable\sto\sarray,\sbut\swe\scould\seven\sadd\sa\sfield\sin\sthe\shashtable\sstruct\sfor\sthat.\sThe\simportant\sthing\sis\sthat\swe\sdon't\sneed\sa\sper-element\sfield.\n\nMiguel,\sdo\syou\sagree\swith\sthis\sview\s?\s\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 2969488fffffffffffffffffffffffffffffffff
U ferrieux
Z c15bd3a9ae85ef2733dab585b5fdd892