Skip to content
Tcl Source Code Artifact [71ffb9db1e]
Login

Artifact [71ffb9db1e]

Artifact 71ffb9db1e656c7ca1ab8d7a3bc6c598e2591c38fdc0d43a00765c0521871bd2:

Ticket change [71ffb9db1e] - Ticket [db36fa5122259be7|db36fa5122] <i>compiled lindex botches index artihmetic</i> status still Open with 3 other changes by dgp on 2018-03-06 14:31:48.
D 2018-03-06T14:31:48.841
J icomment Tcl\s8.5\shad\stwo\sopcodes\swhich\stook\sinteger\soperands\srepresenting\r\nindex\svalues\sdetermined\sat\scompile\stime\s(OPERAND_IDX4).\r\n\r\nINST_LIST_INDEX_IMM\r\nINST_LIST_RANGE_IMM\r\n\r\nThey\sagree\son\san\sencoding\sthat\sthe\soperand\svalues\r\n\r\n-1,\s0,\s1,\s...,\sINT_MAX\r\n\r\nstand\sfor\sthe\ssame\sindex\svalues,\swhile\sthe\soperand\svalues\r\n\r\n-2,\s-3,\s...,\sINT_MIN\r\n\r\nstand\sfor\sthe\sindex\svalues\r\n\r\nend,\send-1,\s...\send-(INT_MIN+2)\r\n\r\nIf\sa\scommand\scompiler\sencounters\san\sindex\svalue\sknown\sat\r\ncompile\stime\sthat\sdoesn't\sfit\sin\sthese\ssupported\sranges,\r\nit\swill\shave\sto\semit\sthe\sother\sinstruction\r\n\r\nINST_LIST_INDEX\r\n\r\nor\sfallback\sto\sruntime\sinvocation.
J login dgp
J mimetype text/plain
K db36fa5122259be74d0ccadd102e076094703052
U dgp
Z e2757871c82d3a26a239d3533bc1fe4d