|
2002-08-14
| ||
| 03:35 | • Ticket [542142ffff] Bug in bcc'ed return status still Closed with 3 ot... artifact: 86045144cc user: msofer | |
|
2002-04-16
| ||
| 00:34 | • Closed ticket [542142ffff]. artifact: 932d50405c user: msofer | |
|
2002-04-11
| ||
| 03:12 | • Ticket [542142ffff]: 4 changes artifact: ed775ca747 user: msofer | |
| 03:12 | • Add attachment bcCatch.patch to ticket [542142ffff] artifact: c30f0be0f1 user: msofer | |
|
2002-04-10
| ||
| 19:29 | • New ticket [542142ffff] Bug in bcc'ed catch. artifact: 6510a1a992 user: msofer | |
Bug in bcc'ed [return]
Closed / Fixed542142ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 24 years ago
Descriptionplain2002-04-10 19:29:33
Andreas Kupries reports:
I believe that I have found a bug in the bytecode
compiler. Below a minimal example of the difference
between 8.3.4 and 8.4 CVS head of last friday (April 5).
What happens is that the "return" in the catch is not
catched but stops execution of the surounding procedure.
[andreask@pliers pro_ng]$ cat catch_test
# -*- tcl -*-
proc foo {} {
set fail [catch {
return
}] ; # {}
return 2
}
puts "foo = [foo]"
[andreask@pliers pro_ng]$
[andreask@pliers pro_ng]$ ./install/834/bin/tclsh8.3
catch_test
foo = 2
[andreask@pliers pro_ng]$
[andreask@pliers pro_ng]$
[andreask@pliers pro_ng]$ ./install/84cvs/bin/tclsh8.4
catch_test
foo =
msoferplain2002-04-11 03:12:32
File Added - 20934: bcCatch.patch Logged In: YES user_id=148712 The patch attached solves the issue.
msoferplain2002-04-16 00:34:00
Logged In: YES user_id=148712 Patch committed: bytecodes now check for a possible [catch] before returning. Before this, the bytecompiled [return] was uncatchable.
msofer Ticket [542142ffff]: 3 changes
[History diff]2002-08-14 03:35:30
Log in (anonymous is fine) to add a comment.
Attachments:
- bcCatch.patch [download] added by msofer on 2002-04-11 03:12:32. [details]