Artifacts Associated With Ticket 446017ffffffffff
Ticket change [f5c7c5b573] (rid 130172) by hemanglavana on 2001-07-30 17:26:21:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
When only one argument is passed to uplevel command and if the first letter is a # sign, then tcl reports an error: godel> tclsh %info patch 8.3.3 % proc #123 {args} {puts args=$args} % uplevel [list #123 hello world] expected integer but got "123 hello world" % uplevel 0 [list #123 hello world] args=hello world % exit The current workaround is to explicitly specify the _level_ argment to uplevel command. Hemang. - foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "hemanglavana"
- subsystem initialized to: "None"
- title initialized to: "uplevel bug for rare case scenario"
- type initialized to: "Bug"
Ticket change [4dbf6d741a] (rid 127102) by msofer on 2001-07-31 06:32:45:
- assignee changed to: "msofer"
- closedate changed to: "2001-07-30T23:32:45"
- closer changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 This is the behaviour documented in the man pages: "If level consists of # followed by a number then the number gives an absolute level number. If level is omitted then it defaults to 1. Level cannot be defaulted if the first command argument starts with a digit or #." For performance reasons you should try not to omit the level if you are passing a command assembled with [list] to [uplevel]: if you do, Tcl_UplevelObjCmd will get the string rep of the list, thereby defeating the "pure list optimisation". Note that (assuming 'cmd' does not start with a digit or #), uplevel cmd ?arg? is equivalent to uplevel 1 cmd ?arg?
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- subsystem changed to: "45. Parsing and Eval"
- username: "msofer"