Skip to content
Tcl Source Code Artifact [b3074135e8]
Login

Artifact [b3074135e8]

Artifact b3074135e8d0d3a1ab91399a74ebaf8e6f882c33:

Ticket change [b3074135e8] - New ticket [1068332fffffffff|1068332fff] <i>Tcl_GetCurrentNamespace doesn&#39;t work properly</i>. by nobody on 2004-11-17 22:59:47.
D 2004-11-17T22:59:47
J assignee dgp
J cmimetype text/plain
J comment I'm\susing\sTcl\s8.4.6\sbut\sit\sseems\sto\sexists\salso\sin\slater\sversions.\s\nMy\ssystem\sis\sLinux\s2.6.8.1,\sSlackware\sCurrent,\sDuron\s800.\s\n\s\nI'm\smaintaining\sTCL\smodule\sfor\sPolish\sInstant\sMessager\scalled\s\nKadu.\sI\swant\sto\suse\snamespaces\sto\sseparate\sloaded\sscripts\sfrom\s\neach\sother.\sI\sdefine\s[on]\scommand\sat\sC++\slevel\sand\sI\sneed\sto\s\nknow\swhat\sis\sthe\scurrent\snamespace,\swhile\sexecuting\sthis\s\ncommand,\sso\sI\suse\sTcl_GetCurrentNamespace()\sto\sget\sit,\sbut\sit\s\nalways\sreturns\s"::".\s\n\s\nNow,\syou'll\spropably\sask\s-\swhy\sI'm\ssure\sthat\sit\sSHOULD\sbe\sdifferent\s\nnamespace\sthan\s"::"?\sWell,\sI\sload\sscript\swhich\sis\sonly\sone\sline\sand\s\nlooks\slike:\s\n\s\non\sconnected\ssome_proc\s\n\s\nand\smy\smodule\sloads\sit\sby\scode:\s\n\s\nint\sstatus\s=\sTcl_VarEval(interp,\s\n\s\s\s\s"namespace\seval\s",\slast,\s"\s{",\s\n\s\s\s\s\s\s\s\sdata,\s\n\s\s\s\s"}",\sNULL);\s\n\s\nwhere\s'last'\sis\schar*\stype\sand\scontains\snamespace\sfor\sthis\sscript,\s\n'data'\sis\salso\schar*\stype\sand\scontains\sscript\scode\sdata,\swhich\sis\sthe\s\nabove\sline\sin\sthis\scase.\sSo,\swhen\sI\scall\s[on]\sin\sthis\sone\sline,\sI\s\nshould\sget\s'last'\svalue\sby\scalling\sTcl_GetCurrentNamespace\sinside\s\nof\s[on],\sam\sI\sright?\sIt\sreturns\sto\sme\s"::".\sThat's\sthe\spoint.\s\n\s\nGoogie,\smy\se-mail\sis\sboogie\s(at)\sscripts.one.pl\s
J foundin obsolete:\s8.4.6
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 50.\sEmbedding\sSupport
J title Tcl_GetCurrentNamespace\sdoesn't\swork\sproperly
J type Bug
K 1068332fffffffffffffffffffffffffffffffff
U nobody
Z 8ba0667f3da12bfc75e18f2f3405c6d0