Artifact
84f419cfcc71d6942afa6a86ef1ac5915c27ddfe:
Ticket change
[84f419cfcc]
- New ticket
[2889293fffffffff|2889293fff] <i>[info exists array(elem)] deletes array searches</i>.
by
mistachkin on
2009-10-30 07:55:47.
D 2009-10-30T07:55:47
J assignee msofer
J cmimetype text/plain
J comment It\sseems\sthe\sact\sof\schecking\sfor\san\sarray\selement\shas\sthe\seffect\sof\sdeleting\spending\sarray\ssearches.\nWhy\sdoes\sINST_EXIST_STK\sin\sTEBC\scall\sTclObjLookupVarEx\swith\screatePart2\snon-zero?\n\nExample:\n\nset\ss\s[array\sstartsearch\stcl_platform]\n\n#\n#\sNOTE:\sTry\sthis\stest\swith\sand\swithout\sthis\s[puts]\sline\scommented.\n#\nputs\sstdout\s[info\sexists\stcl_platform([clock\sseconds])];\s#\simproperly\sinvalidates\sarray\ssearch.\n\nset\sresult\s[list]\nwhile\s{[array\sanymore\stcl_platform\s$s]}\s{\n\s\sif\s{[array\snextelement\stcl_platform\s$s]\seq\s"user"}\sthen\s{\n\s\s\s\slappend\sresult\suser\n\s\s}\n}\n\nset\sresult;\s#\sshould\sbe\s"user"\ncatch\s{array\sdonesearch\stcl_platform\s$s}\ncatch\s{unset\s-nocomplain\sresult\ss}
J foundin obsolete:\s8.6b1.1
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter mistachkin
J subsystem 47.\sBytecode\sCompiler
J title [info\sexists\sarray(elem)]\sdeletes\sarray\ssearches
J type Bug
K 2889293fffffffffffffffffffffffffffffffff
U mistachkin
Z dca3de996c75ebc216f3472ba57ea431