Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f05054ee5ac951793bf7d745698ce5e98fef3975
Ticket: c95b9fc0e35a1cddcd877f02e5218054d1be8254
inconsistent error codes for bad levels
User & Date: dgp on 2016-04-05 02:48:55
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    There are several places where Tcl has to parse
    a "level" to indicate some Frame, but when something
    goes wrong a hodge-podge of different error codes
    are used, even though the same error message is
    in place: 'bad level "bad"'
    
    [info frame bad] raises TCL LOOKUP STACK_FRAME
    
    [info level bad] raises TCL LOOKUP STACK_LEVEL
    
    [upvar bad x y] raises TCL VALUE LEVEL
    
    [upvar -1 x y] raises TCL VALUE STACKLEVEL
    
    If there's a sense to this, I'm not seeing it.
    
  5. foundin changed to: "trunk"
  6. is_private changed to: "0"
  7. login: "dgp"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "dgp"
  13. subsystem changed to: "None"
  14. title changed to: "inconsistent error codes for bad levels"
  15. type changed to: "Bug"