<i>[info exists array(elem)] deletes array searches</i> status still Open with 6 other changes
by
.
D 2009-10-30T17:15:54
J assignee dkf
J icomment The\sBC\simplementation\shas\sto\smimic\sexactly\sthe\snon-compiled\simplementation.\s\n\nAs\s[info\sexists]\striggers\sread\straces\son\sthe\sarray\sand\sthe\straces\scould\swell\screate\snew\selements,\sthe\seffect\son\ssearches\sis\sinevitable\s(or\sat\sleast\svery\shard\sto\savoid).\n\nThe\scomments\sat\sthe\sstart\sof\sTclVarTraceExists\sattempt\san\sexplanation:\n\n\s\s\s\s/*\n\s\s\s\s\s*\sThe\schoice\sof\s"create"\sflag\svalues\sis\sdelicate\shere,\sand\smatches\sthe\n\s\s\s\s\s*\ssemantics\sof\sGetVar.\sThings\sare\sstill\snot\sperfect,\showever,\sbecause\sif\n\s\s\s\s\s*\syou\sdo\s"info\sexists\sx"\syou\sget\sa\svarPtr\sand\stherefore\strigger\straces.\n\s\s\s\s\s*\sHowever,\sif\syou\sdo\s"info\sexists\sx(i)",\sthen\syou\sonly\sget\sa\svarPtr\sif\sx\n\s\s\s\s\s*\sis\salready\sknown\sto\sbe\san\sarray.\sOtherwise\syou\sget\sNULL,\sand\sno\strace\n\s\s\s\s\s*\sis\striggered.\sThis\smatches\sTcl\s7.6\ssemantics.\n\s\s\s\s\s*/\n\n\n
J login msofer
J mimetype text/plain
J subsystem 17.\sCommands\sI-L
J username msofer
K 2889293fffffffffffffffffffffffffffffffff
U msofer
Z 680eb42959926476335021693d8fbc8a