Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9c2915b82673ed981b1aebd36f8d34f2733b72e2
Ticket: 1374582fffffffffffffffffffffffffffffffff
invalid object modification
User & Date: uring on 2005-12-06 16:11:06
Changes

  1. assignee changed to: "nijtmans"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    (1) run the following script:
    
    proc touch {listValue} {
        lset listValue 1 4 5
        return $listValue
    }
    set data [list a [list 1 2 3] b]
    puts $data
    touch $data
    puts $data
    
    (2) you get the expected output:
    
    a {1 2 3} b
    a {1 2 3} b
    
    ... the proc "touch" has _not_ changed the variable
    "data"
    
    (3) now uncomment the first "puts $data" command and
        rerun the script
    
    (4) the output is
    
    a {1 7 3} b
    
    BTW: This does _not_ happen with tcl8.5a2.
    
    
    
  4. foundin changed to: "obsolete: 8.5a3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "uring"
  9. subsystem changed to: "14. List Object"
  10. title changed to: "invalid object modification"
  11. type changed to: "Bug"