Skip to content
Tcl Source Code Artifact [901d443968]
Login

Artifact [901d443968]

Artifact 901d443968bdf9448f3458a453e5645f39f9db93f7cf321d9e23a3ca24cf43c6:

Ticket change [901d443968] - New ticket [2634f337a79d00e4|2634f337a7] <i>namespace eval not finding global variables</i>. by anonymous on 2023-12-05 00:36:40.
D 2023-12-05T00:36:40.318
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment The\smanual\sfor\stcl9.0\shas\snot\schanged\sfor\snamespace\sname\sresolution\sand\sso\sI\swill\sassume\sthat\sthe\sexample\sshould\sstill\swork.\sIt\sdoes\swork\sin\s8.6,\sthe\sbelow\sis\sin\s9.0b1\r\n\r\n%\sproc\sprintTrace\s{args}\s{puts\s{*}$args}\s;#\smy\sdef\sto\smake\sthis\swork\r\n\r\n%\sset\straceLevel\s0\r\n0\r\n%\snamespace\seval\sDebug\s{\r\n\s\s\s\s\sprintTrace\s$traceLevel\r\n\s}\r\ncan't\sread\s"traceLevel":\sno\ssuch\svariable\r\n\r\nIt\sdoes,\showever,\sfind\sthe\sprocedure\sprintTrace.\r\n\r\nIt\sis\ssupposed\sto\slook\sfirst\sin\sthe\sDebug\snamespace,\sbut\snot\sfinding\sit\sthere,\sit\sshould\seventually\sfind\sit\sin\sthe\sglobal\snamespace.\r\n\r\nOne\splace\sthis\soccurs\sis\sin\sBWidgets,\sthe\sfile\s\sdropsite.tcl\sdoes\sa\stest,\r\n\r\nnamespace\seval\sDropSite\s{\r\n...snip...\r\n\s\s\s\sif\s{\s$tcl_platform(platform)\s==\s"unix"\s}\s{\r\n\r\nwhich\sbeing\sinside\sa\snamespace\seval\sdid\snot\sfind\stcl_platform.\sI\shad\sto\sfix\sit\sby\schanging\sto\s$::tcl_platform
J foundin tcl9.0b1
J is_private 0
J login anonymous
J priority 5\sMedium
J resolution None
J severity Important
J status Open
J submitter anonymous
J subsystem 21.\s[namespace]
J title namespace\seval\snot\sfinding\sglobal\svariables
J type Bug
K 2634f337a79d00e4a5c8d3d81e3cbd446b297549
U anonymous
Z fb444b57c0e5941a3c7ced43510279c7