Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 01c4a060da8b07fa43f775ffc8d84397ed0aee7f65342a9536907a100fd31ba8
Ticket: db36fa5122259be74d0ccadd102e076094703052
compiled lindex botches index artihmetic
User & Date: dgp on 2018-03-06 15:49:00
Changes

  1. icomment:
    
    Tcl 8.6 also added an assembler and provides in it access to
    the INST_LIST_INDEX_IMM instruction.  It botches index compiling
    in the same way -- misusing TclGetIntForIndex(), like so:
    
    % tcl::unsupported::assemble {
    push {a b c};
    listIndexImm end+2
    }
    a
    % tcl::unsupported::assemble {
    push {a b c};
    listIndexImm -1-1
    }
    c
    
    The other index-value-using instructions are not in the
    instruction set of the assembler. I guess it lags.
    
  2. login: "dgp"
  3. mimetype: "text/plain"