Artifacts Associated With Ticket 1583266fffffffffffffffffffffffffffffffff
Ticket change [5921386c4e] (rid 117924) by msofer on 2006-10-24 00:35:05:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The new details in apply invocation hit a quoting bug in Tcl_WrongNumArgs: see the test failures ==== apply-4.1 error in arguments to lambda expression FAILED ==== Contents of test case: set lambda [list x {set x 1}] set res [catch {apply $lambda} msg] list $res $msg ---- Result was: 1 {wrong # args: should be "apply {{x {set x 1}}} x"} ---- Result should have been (exact matching): 1 {wrong # args: should be "apply {x {set x 1}} x"} ==== apply-4.1 FAILED ==== apply-4.2 error in arguments to lambda expression FAILED ==== Contents of test case: set lambda [list x {set x 1}] set res [catch {apply $lambda x y} msg] list $res $msg ---- Result was: 1 {wrong # args: should be "apply {{x {set x 1}}} x"} ---- Result should have been (exact matching): 1 {wrong # args: should be "apply {x {set x 1}} x"} ==== apply-4.2 FAILED - foundin initialized to: "obsolete: 8.5a6"
- is_private initialized to: "0"
- priority initialized to: "8"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: "45. Parsing and Eval"
- title initialized to: "Tcl_WrongNumArgs quotes too much"
- type initialized to: "Bug"
Ticket change [a069729d92] (rid 96808) by dkf on 2006-10-24 16:05:32:
- icomment:
Logged In: YES user_id=79902 Be careful. It's in this area that the Itcl quoting strangeness hangs out.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [de7c8991b4] (rid 114860) by msofer on 2006-10-24 16:51:50:
- icomment:
Logged In: YES user_id=148712 Yes - and no. Itcl's strangeness is with the first word in the command, this here is the second. Apply has a strangeness of its own. The problem seems to be that an extra level of quoting is added when none is needed: the lambda-expr was already in list form, no new {...} is necessary around it. - login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [8bf7db9644] (rid 127670) by msofer on 2006-10-25 04:33:49:
- icomment:
Logged In: YES user_id=148712 Looks like a problem in [apply] after all ...
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [a9d122e2dd] (rid 99219) by msofer on 2006-10-25 05:06:03:
- icomment:
Logged In: YES user_id=148712 AARGHH ... no bug when AVOID_HACKS_FOR_ITCL is defined. So, seem to need to find a hack to avoid the hack.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [91cb0c187f] (rid 120676) by msofer on 2006-10-25 05:31:19:
- closedate changed to: "2006-10-24T22:31:19"
- closer changed to: "msofer"
- resolution changed to: "Fixed"
- status changed to: "Closed"