Skip to content
Tcl Source Code History Of Ticket 218638
Login

History Of Ticket 218638

Artifacts Associated With Ticket 218638

  1. Ticket change [850cd44508] (rid 131260) by nobody on 2000-10-26 01:03:33:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 1556 Bug
      Version: 8.1b2
      SubmitDate: '1999-03-19'
      LastModified: '1999-04-05'
      Severity: SER
      Status: Released
      Submitter: pat
      ChangedBy: stanton
      RelatedBugIDs: 1153
      OS: Other
      Machine: NA
      FixedDate: '1999-04-05'
      FixedInVersion: 8.1b3
      ClosedDate: '2000-10-25'
      
      
      Name:
      Don Porter
      
      ReproducibleScript:
          # FILE: test.tcl
          proc foo0 {} {
              set lvl 0
              while {![catch {info level $lvl} res]} {
                  puts "Level $lvl: $res"
                  incr lvl -1
              }
              puts "Exit loop: $res"
          }
          proc foo1 {} {foo0}
          interp alias {} bar1 {} foo1
          proc foo2 {} {bar1}
          foo2
          
          
      
      
      
      ObservedBehavior:
          $ tclsh8.0 test.tcl
          Level 0: foo0
          Level -1: bar1
          Level -2: foo2
          Exit loop: bad level "-3"
          
          $ tclsh8.1 test.tcl
          Level 0: foo0
          Level -1: foo1
          Exit loop: bad level "-2"
          
          
      
      
      
      DesiredBehavior:
          Consistent operation in Tcl 8.0 and Tcl 8.1 .
          
      
      
      
      Patch:
      A partial fix is provided by the patch available at
      
      http://www.dejanews.com/getdoc.xp?AN=418629997
      
      
      
      
      PatchFiles:
          tclInterp.c 
          
      
      
      
      
      The 8.1 behavior may actually be the correct behavior.  The issue is what level the alias is invoked at.  The "correct" behavior should have been back-ported into Tcl 8.0.5.  This should be verified.
      03/23/1999 19:20 - surles -
      
      The 8.0 behavior is to invoke the alias at the current scope in the target interpreter, so the 8.1 behavior is an incompatible change and should be fixed.
      04/05/1999 18:26 - stanton -
      
      
      
    4. foundin initialized to: "obsolete: 8.1b2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "[interp alias] inconsistency"
    11. type initialized to: "Bug"
  2. Ticket change [4a2c90f6ad] (rid 126494) by welch on 2000-10-26 08:26:09:

    1. closedate changed to: "2000-10-26T01:26:09"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [7b2ddddfff] (rid 90478) by dgp on 2001-04-17 05:41:38:

    1. closedate changed to: "2001-04-16T22:41:38"
    2. closer changed to: "dgp"
    3. subsystem changed to: "20. [interp]"