Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bd0a065aa86f4ab9e7bf29d7b290ed4038e696de
Ticket: 1333036fffffffffffffffffffffffffffffffff
lset misshandles sublists
User & Date: msofer on 2005-10-20 10:05:31
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    (Bug reported on clt by neuronstorm at gmail dot com)
    
    mig@ave:/home/CVS/tcl_SF_clean/unix$ cat /tmp/test
    set a [list {1 b} {c d}]
    set b $a
    lset b 0 0 2  ;#change one subelement in the new list
    puts "{$a}:{$b}:[expr {$b == $a}]"
    mig@ave:/home/CVS/tcl_SF_clean/unix$ ./tclsh /tmp/test
    {{2 b} {c d}}:{{2 b} {c d}}:1
    
    Notes:
      1. The bug does not show at the console, nor within a
    proc body
      
    2. The bug does not show if the first line is replaced by
            set a {{1 b} {c d}}
    but it still appears when it is
            set a [list [list 1 b] [list c d]]
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "msofer"
  9. subsystem changed to: "17. Commands I-L"
  10. title changed to: "lset misshandles sublists"
  11. type changed to: "Bug"