Skip to content
Tcl Source Code Artifact [efe4a39e9a]
Login

Artifact [efe4a39e9a]

Artifact efe4a39e9a3808cfdd8436ce10324180797b7385:

Ticket change [efe4a39e9a] - New ticket [218334ffffffffff|218334ffff] <i>namespace import command causes one Tclx command to not be f</i>. by nobody on 2000-10-26 00:56:22.
D 2000-10-26T00:56:22
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s3947\sBug\nVersion:\s8.0.3\nSubmitDate:\s'1999-12-27'\nLastModified:\s'2000-06-27'\nSeverity:\sMED\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\sericm\nRelatedBugIDs:\s3531\nOS:\sLinux-Red\sHat\nOSVersion:\sLinux\s5.2\nMachine:\sPC\swith\sPentium\sII\s400/256\sMB\sRAM\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-06-27'\n\n\nName:\nCharles\sShartsis\n\nExtensions:\nTclx\s8.0.3\spatchlevel\s0\n\nCustomShell:\nNo\smodifications\sor\spatches\n\nReproducibleScript:\nRun\sthe\sbelow\sscript\swith\sand\swithout\sthe\snamespace\simport\scommand\scommented\sout.\n\n#!/bin/sh\n#\sRun\stclsh\sfrom\sthe\sPATH\s\sexec\stclsh\s"$0"\s"$@"\n\npackage\srequire\sTclx\n\nputs\s"Tcl\sversion\sis\s[info\stclversion]\s(my\ssystem\sis\s8.0)"\nputs\s"Tcl\spatchlevel\sis\s[info\spatchlevel]\s(tried\sit\swith\s8.0.3\sand\s8.0.5)"\nputs\s"TclX\sversion\sis\s[infox\sversion]\s(my\ssystem\sis\s8.0.3)"\nputs\s"Tclx\spatchlevel\sis\s[infox\spatchlevel]\s(my\ssystem\sis\s0)"\n\nnamespace\seval\sLib\s{}\n\nproc\sLib::Aproc\s{}\s{\n\n\s\s\stranslit\sa\sb\sc\n\s\s\sset\sa(1)\s1\n\s\s\sfor_array_keys\skey\sa\s{\sputs\s"It\sworks"\s}\n\n}\n\n#\sIt\sworks\swith\snext\sline\scommented\sout.\s\sWhy?\nnamespace\simport\sLib::Aproc\n\nLib::Aproc\n\nObservedBehavior:\nI\sfrankly\sdon't\sknow\swhether\sthis\sis\sa\sproblem\swith\sTcl\sor\sextended\sTcl.\s\sThen\sagain,\smaybe\sthere\sis\sno\sproblem\sand\sI\sam\sextremely\sconfused.\n\nRefer\sto\sthe\sabove\sscript\s(which\sis\san\sextremely\ssimplified\sversion\sof\sthe\sscript\swhich\soriginally\smanifested\sthe\sproblem).\s\sNote\sthat\sboth\stranslit\sand\sfor_array_keys\sare\sextended\stcl\scommands.\s\sIf\syou\scomment\sout\sthe\snamespace\simport\scommand,\sthe\sscript\sruns\sfine\sand\sprints\s"It\sworks".\s\sIf\syou\srun\sthe\sscript\swith\sthe\snamespace\simport\scommand\snot\scommented\sout,\syou\sget\sthe\sfollowing\sstack\strace:\n\ninvalid\scommand\sname\s"for_array_keys"\n\s\s\s\swhile\sexecuting\n"for_array_keys\skey\sa\s{\sputs\s"It\sworks"\s}"\n\s\s\s\s(procedure\s"Lib::Aproc"\sline\s5)\n\s\s\s\sinvoked\sfrom\swithin\n"Lib::Aproc"\n\s\s\s\s(file\s"./bug.tcl"\sline\s25)\n\nDesiredBehavior:\nI\shave\stwo\sobservations:\n\n1)\sWith\sor\swithout\sthe\snamespace\simport\scommand,\sthere\sshould\sbe\sno\serror\n2)\sIf\sextended\sTcl\scommands\scannot\sbe\sfound\sin\sLib::Aproc,\sthen\sit\sseems\sto\sme\sthat\sthe\sfailure\sshould\soccur\sat\sthe\stranslit\scommand\swhich\sprecedes\sthe\sfor_array_keys\scommand.\s\sBoth\sare\sextended\sTcl\scommands.\n\n\n\nI\sam\sunable\sto\sduplicate\sthis\sbehavior\swith\sTcl\s8.0.5/Tclx\s8.0.3,\sor\swith\sTcl\s8.4a1/Tclx\s8.2,\son\sRedhat\s6.0.\s\sPerhaps\sit\swas\sa\sproblem\swith\sthe\slibraries\son\sRedhat\s5.2.\n\n-\seric\n\n--\s06/27/2000\sericm\n\n
J foundin obsolete:\s8.0.3
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title namespace\simport\scommand\scauses\sone\sTclx\scommand\sto\snot\sbe\sf
J type Bug
K 218334ffffffffffffffffffffffffffffffffff
U nobody
Z 94884507ef077767a5d447d013ea606c