.
D 2004-06-06T12:15:51
J assignee hobbs
J cmimetype text/plain
J comment Unless\sI\shave\smissed\ssomething\sin\sthe\sdocs\s(which\sis\s\nentirely\spossible\sat\sthis\shour),\sthis\sbehaviour\sis\seither\sa\s\nbug\sor\sa\sdocumentation\soversight.\s\s\n\nIs\sthere\ssome\sbad\sinteraction\shere\sbetween\sslave\s\ninterps\sand\s[interp\salias]?\s\sPerhaps\sthe\scombination\sof\s\nslave\sinterps\sand\snamespaces\striggers\sthis\sproblem?\s\s\n\nIf\sthis\sis\sNOT\sa\sbug,\sit\sis\sstill\sdownright\sconfusing.\s\s\nHaving\s[info\slevel]\s"skip\sover"\sa\scaller\sin\sthe\sstack\sis\snot\s\nideal.\n\n----\n\nnamespace\seval\s::test\s{\n\s\sproc\sprocA\s{\sinterp\s}\s{\n\s\s\s\sif\s{$interp}\sthen\s{\n\s\s\s\s\s\sglobal\si\n\s\s\s\s\s\sinterp\salias\s$i\s::test::A::procB\s{}\s::test::procB\n\s\s\s\s\s\sinterp\seval\s$i\s[list\snamespace\seval\s::test::A\sprocC]\n\s\s\s\s}\selse\s{\n\s\s\s\s\s\sinterp\salias\s{}\s::test::A::procB\s{}\s::test::procB\n\s\s\s\s\s\snamespace\seval\s::test::A\sprocC\n\s\s\s\s}\n\s\s}\n\n\s\sproc\sprocB\s{}\s{\n\s\s\s\sset\scurrent\s[lindex\s[info\slevel\s[info\slevel]]\s0]\n\n\s\s\s\s#\sshould\sprint\s"::test::procB"\n\s\s\s\sputs\sstdout\s"current\s([info\slevel])\s==\s$current"\n\n\s\s\s\sif\s{$current\s==\s"::test::procB"}\sthen\s{\n\s\s\s\s\s\sputs\sstdout\s"SUCCESS,\scurrent\sproc\smatch."\n\s\s\s\s}\selse\s{\n\s\s\s\s\s\sputs\sstdout\s"FAILURE,\scurrent\sproc\smismatch."\n\s\s\s\s}\n\n\s\s\s\sset\sparent\s[lindex\s[info\slevel\s[expr\s{[info\slevel]\s-\s1}]]\s\n0]\n\n\s\s\s\s#\sshould\sprint\s"::test::A::procC"\sor\s"procC"\n\s\s\s\sputs\sstdout\s"parent\s([info\slevel]\s-\s1)\s==\s$parent"\n\n\s\s\s\sif\s{[string\smatch\s"*procC"\s$parent]}\sthen\s{\n\s\s\s\s\s\sputs\sstdout\s"SUCCESS,\sparent\sproc\smatch."\n\s\s\s\s}\selse\s{\n\s\s\s\s\s\sputs\sstdout\s"FAILURE,\sparent\sproc\smismatch."\n\s\s\s\s}\n\s\s}\n}\n\n\nforeach\sthis_interp\s[list\s0\s1]\s{\n\s\sputs\sstdout\s"Running\stest\swith\suse_new_interp\sset\sto\s\n$this_interp."\n\n\s\sif\s{$this_interp}\sthen\s{\n\s\s\s\sset\si\s[interp\screate]\n\s\s\s\s\n\s\s\s\sinterp\seval\s$i\s{\n\s\s\s\s\s\snamespace\seval\s::test::A\s{\n\s\s\s\s\s\s\s\sproc\sprocC\s{}\s{\n\s\s\s\s\s\s\s\s\s\sprocB\n\s\s\s\s\s\s\s\s}\s\s\s\s\n\s\s\s\s\s\s}\n\s\s\s\s}\n\s\s}\selse\s{\n\s\s\s\snamespace\seval\s::test::A\s{\n\s\s\s\s\s\sproc\sprocC\s{}\s{\n\s\s\s\s\s\s\s\sprocB\n\s\s\s\s\s\s}\s\s\s\s\n\s\s\s\s}\n\s\s}\n\s\s\n\s\s::test::procA\s$this_interp\n}\n
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter mistachkin
J subsystem 20.\s[interp]
J title [interp\salias]\sproblem...
J type Bug
K 967565ffffffffffffffffffffffffffffffffff
U mistachkin
Z 49ace3751d2e973fe5796639011d744d