Artifacts Associated With Ticket 213b6a2b9d
Ticket change [9c1eb56fb7] (rid 146213) by dgp on 2016-04-06 01:23:13:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized 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" - foundin initialized to: "trunk"
- is_private initialized to: "0"
- login: "dgp"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "22. [proc] and [uplevel]"
- title initialized to: "EIAS violation in level parsing"
- type initialized to: "Bug"
Ticket change [0b67a78f90] (rid 146214) by dgp on 2016-04-06 02:03:27:
- icomment:
Another EIAS problem illustrated: % apply {{} {uplevel -4294967295 {}}} invalid command name "-4294967295" % apply {{} {uplevel [expr -4294967295] {}}} % This one is even more strange because in the latter case there is no error because in the rules of interpretation of [uplevel] the value -4294967295 is just another way to write "1". The [uplevel] docs state that the $level argument is required whenever the first non-level argument might begin with a '#' or with a digit. This suggests that any value that begins with a '#' or with a digit which fails parsing as a level has to be reported as a bad parse, and not fall back to the default handling. Somewhat strangely, neither case covers the values "-3" or ".2", but it does cover "0.2", so numerically equal values can get different treatment. - login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [26fd392c0f] (rid 146215) by anonymous on 2016-04-06 02:44:19:
- icomment:
nice bug! at fault seems to be TclObjGetFrame - for negative arguments the flow is clear between http://core.tcl.tk/tcl/artifact/97c663a4905173b7?ln=870 and http://core.tcl.tk/tcl/artifact/97c663a4905173b7?ln=892 . Floats starting with a digit will get the "expected integer" variation from line 893.
- login: "anonymous"
- mimetype: "text/plain"
- username: "aspect"
- icomment:
Ticket change [37e1db95c4] (rid 146219) by dgp on 2016-04-06 15:15:44:
- icomment:
Yes. Code review is how I found it. Wanted a record here of why I was making the changes I'm about to make.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [fe77d13dd8] (rid 146224) by dgp on 2016-04-06 18:27:27:
- assignee changed to: "dgp"
- closedate changed to: "2457485.26907394"
- closer changed to: "dgp"
- icomment:
Fix committed for 8.6.6. Will merge forward later.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"