Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 850cd44508894c89e8990ce9f2d2f0324e09a84c
Ticket: 218638ffffffffffffffffffffffffffffffffff
[interp alias] inconsistency
User & Date: nobody on 2000-10-26 01:03:33
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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 changed to: "obsolete: 8.1b2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "[interp alias] inconsistency"
  11. type changed to: "Bug"