Overview
| Artifact ID: | 850cd44508894c89e8990ce9f2d2f0324e09a84c |
|---|---|
| Ticket: | 218638ffffffffffffffffffffffffffffffffff
[interp alias] inconsistency |
| User & Date: | nobody on 2000-10-26 01:03:33 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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 - - foundin changed to: "obsolete: 8.1b2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to: "[interp alias] inconsistency"
- type changed to: "Bug"