Skip to content
Tcl Source Code History Of Ticket 1833652
Login

History Of Ticket 1833652

Artifacts Associated With Ticket 1833652

  1. Ticket change [ffeb46379a] (rid 108846) by mistachkin on 2007-11-17 14:37:53:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      NOTE: This bug applies to both 8.4.x and HEAD.
      
      proc a { a } {
        puts stdout [info level]; # 1
        b $a
      }
      
      proc b { b } {
        puts stdout [info level]; # 2
      
        uplevel 1 {
          puts stdout [info level]; # 1
      
          uplevel 1 {
            puts stdout [info level]; #0
      
            uplevel #0 {
              puts stdout [info level]; #0
            }
      
            uplevel #1 {
              # this raises an error when it should not.
              puts stdout [info level]; # 1
            }
      
            uplevel #2 {
              # this raises an error when it should not.
              puts stdout [info level]; # 2
            }
          }
        }
      }
      
      a 2
      
      
    4. foundin initialized to: "obsolete: 8.5b2"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "mistachkin"
    10. subsystem initialized to: "22. [proc] and [uplevel]"
    11. title initialized to:
      absolute uplevel can fail when nested in relative uplevel
      
    12. type initialized to: "Bug"
  2. Ticket change [7738870ff8] (rid 89743) by msofer on 2007-11-17 22:01:14:

    1. closedate changed to: "2007-11-17T15:01:14"
    2. closer changed to: "msofer"
    3. icomment:
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      That is the correct behaviour, per design and docs:
      "The uplevel command causes the invoking procedure to disappear from the procedure calling stack while the command is being executed."
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "msofer"