Skip to content
Tcl Source Code Artifact [053c66d7bc]
Login

Artifact [053c66d7bc]

Artifact 053c66d7bc43975f98e20cd24c7e860e0034ecad:

Ticket change [053c66d7bc] - Ticket [a4494e28edfaa3a5|a4494e28ed] <i>alias trace did not find command in real command list of import references</i> status still Open with 4 other changes by miguel on 2014-02-06 15:15:33.
D 2014-02-06T15:15:33.117
J assignee dgp
J icomment This\sis\spretty\sinvolved\s-\sthe\srequired\smechanics\sfor\sdeleting\san\simported\scommand\sALSO\sfrom\sa\sdelete\strace\son\sthe\starget\sare\snot\sin\splace,\sand\sit\sdoesn't\slook\strivial\sto\simplement.\sThe\strouble\sis\s(refs\sfrom\scheckout4aa075565662,\stoday's\stop\sof\score-8-5-branch):\r\n\s\s1.\swhen\sthe\starget\sis\sreplaced\svia\sTcl_CreateObjCommand,\sthe\simportRefPtr\sis\ssaved\sand\sset\sto\sNULL\s(tclBasic.c\sline\s1891)\r\n\s\s2.\sthe\starget\sis\sdeleted,\sit's\sdelete\straces\srun\scausing\sthe\simported\scommand\sto\sbe\sdeleted\r\n\s\s3.\sthe\simported\scommand\slooks\sfor\sa\sref\sto\sitself\sin\sthe\starget's\simportRefPtr,\spanics\swhen\sit\sdoesn't\sfind\sitself\r\n\r\nI\sdo\snot\ssee\show\sto\sfix\sthis.\sIt\sis\sa\sconseuqence\sof\swhat\sI\sconsider\sto\sbe\sa\smisfeature.\sRedefining\sa\scommand\smaintains\sthe\sexports\s-\sso\sthat\simported\scommands\sare\sNOT\sa\slink\sto\sthe\soriginal\simplementation\s(what\sI\swould\spropose\sis\sthe\scorrect\sthing),\sbut\srather\sto\sthe\scurrent\simplementation\s...\sASSUMING\sit\swasn't\sEXPLICITLY\sdeleted\sand\sthen\srecreated,\sin\swhich\scase\sthe\simport\sceases\sto\sexist.\sA\sweird\sbastard\sbetween\san\sinterp-alias\sand\s(what\sI\sbelieve\sshould\sbe)\san\simport.\r\n\r\nIOW,\sredefining\sa\scommand\sis\sdifferent\sfrom\sdeleting/recreating\sit\sin\sterms\sof\sexports\s-\sbut\sdelete\straces\shave\sno\sway\sto\sknow\sabout\sthis\sdifference.\sMaybe\sthe\ssolution\sshould\sbe\sthat\sdelete\straces\snot\sbe\srun\swhen\sthe\scommand\sis\sbeing\srecreated?
J login miguel
J mimetype text/plain
K a4494e28edfaa3a5d064dd1d91cfbd6163b6fb20
U miguel
Z 5038f014657fd5890c187693537cee6b