Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1a890f96c5c58f427f1e76868f77cf40fd9fc39a
Ticket: 2008248fffffffffffffffffffffffffffffffff
dict to list changes element representations
User & Date: ajpasadyn on 2008-07-01 20:51:39
Changes

  1. assignee changed to: "nijtmans"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I found an issue while using TclBlend in Tcl 8.5, and the attached script demonstrates it.  Basically, the conversion of an internal representation from list to dict is special cased to keep the representations of the elements, while the conversion from dict to list passes through a string-only representation.  This appears even in code that does not explicitly use dict because the array get and set have changed to use dict now.
    
    TclBlend uses a special internal representation to hold references to Java objects, and if the internal representation is lost then the underlying object might get freed.  This violates the "everything is a string" but in the past it's been sufficient to just make sure that the Tcl script itself was careful with the references it obtained.  If the Tcl core changes internal representations beyond what is needed then an extension like this really does not seem to have much of a chance of working.
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "ajpasadyn"
  10. subsystem changed to: "14. List Object"
  11. title changed to: "dict to list changes element representations"
  12. type changed to: "Bug"