Skip to content
Tcl Source Code Artifact [4a98e73909]
Login

Artifact [4a98e73909]

Artifact 4a98e739090c3613b1a8cd6fc004a95882bb190f:

Ticket change [4a98e73909] - New ticket [218451ffffffffff|218451ffff] <i>Bug in pkg_mkIndex and namespaces</i>. by nobody on 2000-10-26 01:00:33.
D 2000-10-26T01:00:33
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s573\sBug\nVersion:\s8.0p2\nSubmitDate:\s'1998-05-21'\nLastModified:\s'1999-08-15'\nSeverity:\sLOW\nStatus:\sReleased\nSubmitter:\shershey\nChangedBy:\shobbs\nOS:\sSolaris\nOSVersion:\s2.6\nMachine:\sNA\nFixedDate:\s'1999-08-15'\nFixedInVersion:\s8.2\nClosedDate:\s'2000-10-25'\n\n\nHi\sfolks,\stry\sthis...\n\n1.\sSave\sthis\sto\stest.tcl:\n\npackage\sprovide\sx\s1.0\nnamespace\seval\sA\s{\n\s\s\s\s\s\s\s\snamespace\sexport\sb\n\s\s\s\s\s\s\s\sproc\sb\s{}\s{}\n}\nnamespace\simport\sA::b\n\n2.\sIn\stclsh8.0\sdo\sthis...\n%\ssource\stest.tcl\n%\sexit\n\n3.\sSo\sfar\sso\sgood.\sNow\srestart\stclsh\sand\stry\sthis\n%\spkg_mkIndex\s.\stest.tcl\nerror\swhile\sloading\sor\ssourcing\stest.tcl:\scan't\simport\scommand\n"b":\nalready\sexists\n%\n\nAny\sidea\swhy?\sseems\slike\sit\sshould\sbe\sOK\sto\sme:\sThe\sfile\sdefines\ntwo\ncommands,\s"A::b"\sand\s"b"\n\nWhat\sI'm\strying\sto\sdo\sis\shide\s(well,\s"obfuscate"\sis\sprobably\smore\naccurate\sI\sguess)\sall\sthe\simplementation\sdetails\sof\sa\spackage\sin\sa\n\nnamespace,\sand\sthen\simport\sa\sfew\sof\sthe\sprocs\sinto\sthe\sglobal\nnamespace.\nI\scan\sthink\sof\ssome\swork\sarounds,\sbut\sbasically\sthey\sinvolve\nwriting\sa\nproc\sin\sthe\sglobal\snamespace\sthat\suses\svariables\sfrom\sthe\npackage's\nnamespace,\sand\sit\swould\sbe\stidier\sif\sI\scould\sjust\suse\s'variable\nwhatever'\swhen\sI\swanted\sto\sdo\sthis.\n\nDetails:\stcl\s8.0p2,\sSolaris\s2.6\nThanks.\n---------------------------------------------------------------\nDavid\sHoulder\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sPhone:\s(06)\s249\s0668\nCentre\sfor\sResource\sand\sEnvironmental\sStudies\s\s(+61\s6\s249\s0668)\nThe\sAustralian\sNational\sUniversity\s\s\s\s\s\s\s\s\sFax:\s+61\s6\s249\s0757\n\n\n\nThis\sworks\sin\s8.2,\salthough\smaybe\snot\sas\sdesired.\s\sBefore\s8.0.5,\nthere\swas\sa\s-verbose\sswitch\screated\sto\sprevent\sthe\serror,\sbut\nthe\sindexing\swouln't\swork,\sbecause\sof\sthe\suse\sof\snamespace\simport\nwithout\sthe\s-force\sswitch\sin\sthe\spkg_mkIndex\scommand.\s\sAdding\sthis\n(which\swas\sdone\sbefore\s8.2)\swill\smake\sit\swork.\s\sHowever,\sin\sthis\nautomation,\sthe\sprocs\sare\sstill\srecognized\sin\stheir\squalified\nstate.\s\sSo\s::A::b\swill\sbe\sput\sin\sthe\spkgIndex.tcl\sfile,\snot\s'b'.\nThe\suser\smay\swant\sto\sedit\sthe\spkgIndex.tcl\sfile\sby\shand\sin\sthis\ncase.\s\n--\s08/15/1999\shobbs
J foundin obsolete:\s8.0p2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title Bug\sin\spkg_mkIndex\sand\snamespaces
J type Bug
K 218451ffffffffffffffffffffffffffffffffff
U nobody
Z 39a5fed0d3ec68823718d992df502238