Overview
| Artifact ID: | abe67a6bc1f3d199e7220eeb4b23fdbba8f954c9 |
|---|---|
| Ticket: | 1445454fffffffffffffffffffffffffffffffff
incr on undefined array fails in procedures |
| User & Date: | dkf on 2006-03-08 16:02:48 |
Changes
- assignee changed to: "msofer"
- icomment:
Logged In: YES user_id=79902 Looks to be a difference in behaviour between bytecodes. :-( % set tcl_traceExec 3; time {incr foo(1)}; set tcl_traceExec 0 1: (10) invoking "time" "incr foo(1)" Executing ByteCode 0x814d960, refCt 2, epoch 0, interp 0x8158d50 (epoch 0) Source: "incr foo(1)" Cmds 1, src 11, inst 7, litObjs 2, aux 0, stkDepth 2, code/src 10.91 Code 120 = header 100+inst 7+litObj 8+exc 0+aux 0+cmdMap 4 Starting stack top=1 2: 1 (0) push1 0 # "foo" 2: 2 (0) push1 0 => "foo" 2: 2 (2) push1 1 # "1" 2: 3 (2) push1 1 => "1" 2: 3 (4) incrArrayStkImm +1 2: 3 (4) incrArrayStkImm "foo(1)" (by 1) => 1 2: 2 (6) done 2: 2 (6) done => return code=0, result="1" ... no enclosing catch, returning TCL_OK 0 % set tcl_traceExec 3;catch { abc }; set tcl_traceExec 0 1: (18) invoking "abc" Calling proc "abc" Executing ByteCode 0x814d260, refCt 2, epoch 0, interp 0x8158d50 (epoch 0) Source: "incr foo(1)" Cmds 1, src 11, inst 6, litObjs 1, aux 0, stkDepth 1, code/src 10.91 Code 120 = header 100+inst 6+litObj 4+exc 0+aux 0+cmdMap 4 Proc 0x816fb90, refCt 2, args 0, compiled locals 1 Starting stack top=24 2: 24 (0) push1 0 # "1" 2: 25 (0) push1 0 => "1" 2: 25 (2) incrArray1Imm %v0 +1 # var "foo" 2: 25 (2) incrArray1Imm 0 "1" (by 1) => ERROR: can't read "foo(1)": no such v ... no enclosing catch, returning TCL_ERROR 0 - login: "dkf"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- subsystem changed to: "47. Bytecode Compiler"
- username: "dkf"