Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 04fcc06f03ec670d9e7ebabfffeaf475a2e3c26a939620082764e14a0fa325c6
Ticket: fa00fbbbabe2d77904ac0086884d5debf9c529a5
lseq / lindex discrepancies
User & Date: apnadkarni on 2023-04-17 01:59:33
Changes

  1. icomment:
    I don't think that TclIndexEncode was missed in moving to 64-bits but rather it was intentional. Iirc, the byte code format is limited to 32-bits and the TclIndexEncode/TclIndexDecode are only used for immediate literal operands (N or end-N) in that range. Operands in variables or outside that range use the TclGetIntForIndexM (or its function equivalent) and load the value from Tcl_Objs on the stack. That is my understanding.
    
    Having said that, there is a ticket logged for some index values so there are definitely some issues that need to be resolved in that area.
    
  2. login: "apnadkarni"
  3. mimetype: "text/plain"