Overview
| Artifact ID: | 3ca3d95e49bc16e2e9abd900f2c52a909d35af27 |
|---|---|
| Ticket: | 406709ffffffffffffffffffffffffffffffffff
Bytecode error -TclExecuteByteCode error |
| User & Date: | dkf on 2001-03-08 22:30:04 |
Changes
- icomment:
Logged In: YES user_id=79902 Bytecodes for my little script that exercises the problem follow: ByteCode 0x370c8, refCt 1, epoch 0, interp 0x24e30 (epoch 0) Source "foreach a a {puts [concat a;break]}" Cmds 4, src 35, inst 35, litObjs 4, aux 1, stkDepth 3, code/src 6.06 Code 212 = header 100+inst 35+litObj 16+exc 28+aux 8+cmdMap 16 Proc 0x302d0, refCt 1, args 0, compiled locals 3 slot 0, scalar, temp slot 1, scalar, temp slot 2, scalar, "a" Exception ranges 1, depth 1: 0: level 1, loop, pc 17-28, continue 10, break 32 Commands 4: 1: pc 0-33, src 0-34 2: pc 17-28, src 13-33 3: pc 19-24, src 19-26 4: pc 26-26, src 28-32 Command 1: "foreach a a {puts [concat a;break]}" (0) push1 0 # "a" (2) storeScalar1 0 # temp var 0 (4) pop (5) foreach_start4 0 (10) foreach_step4 0 (15) jumpFalse1 17 # pc 32 Command 2: "puts [concat a;break]" (17) push1 1 # "puts" Command 3: "concat a" (19) push1 2 # "concat" (21) push1 0 # "a" (23) invokeStk1 2 (25) pop Command 4: "break" (26) break (27) invokeStk1 2 (29) pop (30) jump1 -20 # pc 10 (32) push1 3 # "" (34) done I believe the problem is that the break doesn't clobber the values pushed onto the stack that were supposed to be removed before reaching the catching context (the foreach). - login: "dkf"
- mimetype: "text/plain"
- username: "dkf"