<i>compiled lindex botches index artihmetic</i> status still Open with 3 other changes
by
.
D 2018-03-06T15:36:13.500
J icomment \r\nIn\sTcl\s8.5\sthe\sopcode\sINST_LIST_RANGE_IMM\sis\sissued\sonly\r\nin\sthe\scompilation\sof\s[lassign]\sto\sdetermine\sthe\sreturn\svalue\r\nof\sthe\scommand\sas,\seffectively,\s[lrange\s$l\s$last+1\send].\r\nThe\sinteger\svalue\s$last+1\sis\san\soperand\sand\s"-2"\sis\sused\sfor\s"end",\r\nmaking\suse\sof\sthe\sencoding\sfacility.\r\n\r\nThe\ssame\seffect\scould\shave\sbeen\sachieved\swith\soperand\svalues\r\nof\seither\sLIST_MAX\sor\sINT_MAX.\r\n\r\nConclusion:\sTcl\s8.5\smakes\slittle\suse\sof\sthe\sindex\sencoding,\sand\r\nno\snecessary\suse.\s\sLots\sof\sexcess\sunused\scapability\sin\sthe\r\nexecution\sengine.
J login dgp
J mimetype text/plain
K db36fa5122259be74d0ccadd102e076094703052
U dgp
Z 42b444c0aaf06b7235bfa9b34cb692af