Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9c1eb56fb7b460974e9f59665df840eb0aee823c
Ticket: 213b6a2b9d42ba2df4171af2c97511bd3b2c15f2
EIAS violation in level parsing
User & Date: dgp on 2016-04-06 01:23:13
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    % apply {{} {uplevel -1 {}}}
    invalid command name "-1"
    
    % apply {{} {uplevel [expr -1] {}}}
    bad level "-1"
    
    [uplevel] ought to treat alike all "-1" values passed
    as the first argument.  It doesn't.  It interprets the
    arguments differently based on whether there's
    an underlying integer objtype.
    
    The related Q is whether level parsing ought to ever
    report a "bad level" error, or whether it should treat
    all invalid level values in the first argument as an
    indication that the default level of "1" is intended,
    and that argument that's not a valid level is the next
    argument to [uplevel] or [upvar].
    
    See also this variation:
    
    % apply {{} {uplevel 1.2 {}}}
    expected integer but got "1.2"
    
  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: "22. [proc] and [uplevel]"
  14. title changed to: "EIAS violation in level parsing"
  15. type changed to: "Bug"