Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 451d7d2ffefab3679b1c735749be98f8f92f7f8fd414c0e75ad48e56af9fbad9
Ticket: a34733451b2cf189528061944466cf7ce7015008
Regression with TIP #636 in foreach
User & Date: griffin on 2023-07-11 13:47:44
Changes

  1. icomment:
    The problem is with TclDuplicatePureObj().  This function forces a type upon a value which sometimes causes a shimmer.  This is bad for abstract lists when called prematurely, i.e. before the value is actually consumed. I had modified the function to prefer src Obj type over the requested type, except when the src was just a string. Any shimmer would already occur later at the point of consumption.
    
    The point of failure in this ticket is specifically relying on Dup for type conversion. (A hidden aspect of Dup)
    The specific value in this case is a variable name previously used, and still exits, as an "index" type. This interfered with the variable lookup because the string was stripped from the obj. It also explains why the test passes when run alone, the variable was not used prior to the test, so did not exist.
    
  2. login: "griffin"
  3. mimetype: "text/x-markdown"