Skip to content
Tcl Source Code Artifact [c1bc81cc82]
Login

Artifact [c1bc81cc82]

Artifact c1bc81cc82799be4e0e3d7571d580f1d9273aba2:

Ticket change [c1bc81cc82] - New ticket [1574099fffffffff|1574099fff] <i>Tcl_UpVar(2)? and behaviour contrary to the docs</i>. by msofer on 2006-10-09 22:26:43.
D 2006-10-09T22:26:43
J assignee dgp
J cmimetype text/plain
J comment Ever\ssince\sTcl8.0,\sthe\sdocumentation\sof\sTcl_UpVar\ssays\nabout\sthe\sflags:\s"Either\sTCL_GLOBAL_ONLY\sor\s0;\sif\nnon-zero,\sthen\sdestName\sis\sa\sglobal\svariable;\sotherwise\nit\sis\sa\slocal\sto\sthe\scurrent\sprocedure\s(or\sglobal\sif\sno\nprocedure\sis\sactive)."\n\nCode\scomments,\sthe\sprocedure\sTestupvarCmd()\sand\svar-3.4\nhowever\ssay\sthat\sTCL_NAMESPACE_ONLY\sis\salso\saccepted.\n\nA\scodesearch\sin\sgoogle\sshows\sno\susers\sof\sany\sflag\svalue\nother\sthan\s0\sand\sTCL_GLOBAL_ONLY.\n\nEither\sthe\sdocs\sor\sthe\scode\srequiring\schanging\sso\sthat\nthey\sagree.\sA\spriori,\sI\swould\schange\sthe\sdocs:\seven\sif\nunused,\sthe\sns-only\sflag\svalue\scould\sbe\suseful.\sOTOH,\nthis\sis\sa\s*POTENTIAL\sINCOMPAT*\s-\sfor\sanybody\swho\swould\nbe\srelying\son\n\s\s\sflags!=0\s\s\s<=>\s\sflags==TCL_GLOBAL_ONLY\n\nOpinion?\n\s\n
J foundin obsolete:\s8.5a4
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter msofer
J subsystem 07.\sVariables
J title Tcl_UpVar(2)?\sand\sbehaviour\scontrary\sto\sthe\sdocs
J type Bug
K 1574099fffffffffffffffffffffffffffffffff
U msofer
Z 0fb5c75ce15aac6087588ec7107ef496