Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6f1c841a41065daa0aff25c23feb3fce7b335bb7
Ticket: 2949396fffffffffffffffffffffffffffffffff
upvar.test failures
User & Date: dgp on 2010-02-10 22:53:17
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    ==== upvar-3.5 unsetting array elements with upvar FAILED
    ==== Contents of test case:
    
        proc p1 {} {
            set a(0) zeroth
            set a(1) first
            set a(2) second
            p2
            array names a
        }
        proc p2 {} {upvar a(0) x; unset x}
        p1
    
    ---- Result was:
    2 1
    ---- Result should have been (exact matching):
    1 2
    ==== upvar-3.5 FAILED
    
    
    
    ==== upvar-3.6 unsetting then resetting array elements with upvar FAILED
    ==== Contents of test case:
    
        proc p1 {} {
            set a(0) zeroth
            set a(1) first
            set a(2) second
            p2
            list [array names a] [catch {set a(0)} msg] $msg
        }
        proc p2 {} {upvar a(0) x; unset x; set x 12345}
        p1
    
    ---- Result was:
    {2 1 0} 0 12345
    ---- Result should have been (exact matching):
    {0 1 2} 0 12345
    ==== upvar-3.6 FAILED
    
    New hash ordering, I imagine.
    
    
  4. foundin changed to: "obsolete: 8.6b1.1"
  5. is_private changed to: "0"
  6. priority changed to: "8"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dgp"
  10. subsystem changed to: "07. Variables"
  11. title changed to: "upvar.test failures"
  12. type changed to: "Bug"