Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9a58e1554e91efad7b2d5392760cba2234b62ff3
Ticket: 4b61afd660d7a1d29ecf794426f46a7384b4a41f
[info frame] lost with indirect command call
User & Date: beric on 2016-06-10 07:42:10
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    # The following command prints stack with [info frame]
    proc stack {} {
        set level [info frame]
        set result {}
        for {set i 1} {$i < $level} {incr i} {
            lappend result [info frame $i]
        }
        return "[join $result "\n"]"
    }
    
    
    # Test command
    proc info_frame_test {} {
        puts "*** call stack ***"
        puts [stack]
        puts "*** call stack from variable ***"
        set cmd stack
        puts [$cmd]
    }
    
    Now run info_frame_test, the result is:
    
    *** call stack ***
    type eval line 1 cmd info_frame_test level 2
    type proc line 3 cmd stack proc ::info_frame_test level 1
    *** call stack from variable ***
    type eval line 1 cmd info_frame_test level 2
    type proc line -1 cmd {$cmd} proc ::info_frame_test level 1
    
    The line is -1 when stack is called through a variable.
    
  5. foundin changed to: "8.6.5"
  6. is_private changed to: "0"
  7. login: "beric"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Critical"
  11. status changed to: "Open"
  12. submitter changed to: "beric"
  13. subsystem changed to: "17. Commands I-L"
  14. title changed to: "[info frame] lost with indirect command call"
  15. type changed to: "Bug"