Artifacts Associated With Ticket 1671138fffffffff
Ticket change [1dbc531a4e] (rid 90862) by dgp on 2007-02-28 18:58:55:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
This script hangs Tcl: proc demo {} { foreach {} x {} } demo By contrast, the non-compiled [foreach] does this: % foreach {} x {} foreach varlist is empty I'm not convinced that an error is really the right response, but infinite loop is definitely wrong. - foundin initialized to: "obsolete: 8.5a6"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "47. Bytecode Compiler"
- title initialized to: "foreach: empty var list -> inf loop"
- type initialized to: "Bug"
Ticket change [2ebef5c115] (rid 92940) by dkf on 2007-03-01 16:04:35:
- assignee changed to: "dkf"
- priority changed to: "9 Immediate"
Ticket change [a64511817b] (rid 98570) by dkf on 2007-03-01 16:23:10:
- icomment:
Logged In: YES user_id=79902 Originator: NO There is a way of detecting the difference without a loop: % proc foo {} {foreach {} x {error bar}}; foo bar % foreach {} x {error bar} foreach varlist is empty Proposed fix: detect the empty-var-list case and don't compile. - login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [0251130af1] (rid 119624) by dkf on 2007-03-01 17:09:17:
- icomment:
Logged In: YES user_id=79902 Originator: NO Fixed in HEAD. Backport needed.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- username: "dkf"
- icomment:
Ticket change [a823c99278] (rid 98925) by dkf on 2007-03-01 17:16:49:
- closedate changed to: "2007-03-01T10:16:49"
- closer changed to: "dkf"
- icomment:
Logged In: YES user_id=79902 Originator: NO Backported.
- login: "dkf"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "dkf"
Ticket change [3072bef990] (rid 93257) by dgp on 2007-03-01 23:02:20:
- icomment:
Logged In: YES user_id=80530 Originator: YES New test fails in 8.4.15: ==== foreach-9.1 compiled empty var list FAILED ==== Contents of test case: proc foo {} { foreach {} x { error "reached body" } } list [catch { foo } msg] $msg ---- Result was: 1 {} ---- Result should have been (exact matching): 1 {foreach varlist is empty} ==== foreach-9.1 FAILED - login: "dgp"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "dgp"
- icomment:
Ticket change [0b97fc8d9f] (rid 114023) by dkf on 2007-03-01 23:35:14:
- closedate changed to: "2007-03-01T16:35:14"
- closer changed to: "dkf"
- status changed to: "Closed"