Artifacts Associated With Ticket 721721ffffffffffffffffffffffffffffffffff
Ticket change [6966287c20] (rid 103243) by nobody on 2003-04-15 10:24:14:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
NB. this is not a true bug report.... The current implementation of [uplevel cmd] (Tcl_UplevelObjCmd in tclProc.c) checks "cmd" to see if it is a level number, even though the docs indicate uplevel's syntax to be: uplevel ?level? cmd ?arg ...? ie. if there is only one argument it has to be the cmd. ie. it doesn't/shouldn't be checked to see if it is a level number I believe that this causes unnecesary shimmering of 'cmd' as it is converted to a string to check to see if it is a number.
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "22. [proc] and [uplevel]"
- title initialized to: "[uplevel cmd] has unnecesary string conversion"
- type initialized to: "Bug"
Ticket change [bd163b6578] (rid 101849) by nobody on 2003-04-15 18:01:19:
- icomment:
Logged In: NO Also consider the following: % proc 22 {} {puts Hi!} % proc Y {} { uplevel 22 } % Y bad level "22" % uplevel wrong # args: should be "uplevel ?level? command ?arg ...?" % info tclversion 8.4 Now *this* is a bug. - login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Ticket change [fb90d8719c] (rid 92086) by msofer on 2003-04-15 19:42:15:
- closedate changed to: "2003-04-15T12:42:15"
- closer changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 That is documented behaviour, not a bug. The [uplevel] man page says: "Level cannot be defaulted if the first command argument starts with a digit or #." Re shimmering: Tcl_Objs can have two simultaneous representations: string and internal; computing the string rep does not destroy the internal rep and does not really qualify as "shimmering". Also, by their genesis, Tcl_Objs representing commands always have a valid string rep.
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "msofer"