Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 41d0463f4f492e59d10e71a9f9fc0849c2d4a361
Ticket: 2883036fffffffffffffffffffffffffffffffff
upvar-7.1 leaves irremovable variable
User & Date: mistachkin on 2009-10-21 06:13:52
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Here is the test (stolen from tcl/tests/upvar.test):
    
    package require tcltest
    tcltest::test upvar-7.1 {upvar to same level} {
        set x 44
        set y 55
        catch {unset uv}
        upvar #0 x uv
        set uv abc
        upvar 0 y uv
        set uv xyzzy
        list $x $y
    } {abc xyzzy}
    
    The test passed.  After the test, try these commands:
    
    info globals uv; # returns uv
    set uv; # returns "xyzzy"
    unset uv; # appears to succeed.
    info globals uv; # still returns uv
    unset uv; # fails with error: 'can't unset "uv": no such variable'
    
  4. foundin changed to: "obsolete: 8.5.7"
  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: "mistachkin"
  10. subsystem changed to: "07. Variables"
  11. title changed to: "upvar-7.1 leaves irremovable variable"
  12. type changed to: "Bug"