Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7b467f5eae54542ad3552abb078a74c6b4fc800e
Ticket: bb6108bb671bb697f10466325e4e9c612831b544
Array tracing not as documented
User & Date: ehunter on 2015-10-07 07:44:34
Changes

  1. icomment:
    A bit more testing regarding test 1.11 in tests/trace.test:
    
    It seems that arrays do still exist after the last element has been removed. This means that either the expected value of trace.test 1.11 is wrong or the array existence is wrong.
    
    i.e. I would expect test 1.11 to return "foo 1"
    
    
    Test code:
    
    puts "X content \'[array get x]\'"
    puts "X existence [info exists x]"
    puts "\nSetting x(foo)\n"
    set x(foo) 0
    puts "X content \'[array get x]\'"
    puts "X existence [info exists x]"
    puts "\nUnsetting x(foo)\n"
    unset x(foo)
    puts "X content \'[array get x]\'"
    puts "X existence [info exists x]"
    
  2. login: "ehunter"
  3. mimetype: "text/plain"
  4. username: "Evan"