Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ec0a07cca38916aed209b55c2a7344332da2a7203920ed32b93d3fd0661ff748
Ticket: a34733451b2cf189528061944466cf7ce7015008
Regression with TIP #636 in foreach
User & Date: pooryorick on 2024-08-20 14:48:55
Changes

  1. closedate changed to: "2460543.11730567"
  2. closer changed to: "pooryorick"
  3. icomment:
    Doing some post-mortem analysis on this, Brian said below, "The Dup-Pure
    removes the string rep, leaving the "index" ObjType internal rep.".
    <code>TclDuplicatePureObj()</code> would not remove the string representation
    of an individual item in the list when converting the type to tclListType, It
    is only the full list representation which is discarded, and
    <code>SetListFromAny()</code> sees to it that each individual list item has a
    string representation when converting a value of another type to a string.
    Therefore it is safe to use <code>TclDuplicatePureObj()</code> to duplicate
    into a list type.  There's something to this story that was not discovered.
    
  4. login: "pooryorick"
  5. mimetype: "text/x-fossil-wiki"