Christian Gollwitzer <
auri...@gmx.de> wrote:
> Am 20.10.14 22:22, schrieb Philip Hoffman:
>> I just upgraded to Activestate 8.6.2. After trying out some scripts I
>> crashed one of them with code similar to the following:
>> proc someProc {} {
>> try {
>> throw vector "Some error..."
>> } trap {vector} {} - trap {echo} {} - trap {charlie} {} {
>> puts "The trap ran!"
>> }
>> }
> A Tcl script should never ever crash this way. [...]
Definitely
>> How could I get around this?
> Waiting for the TCT to fix it :-( I leave it to the experts to try.
As a workaround, you can give each trap its own body.
After a few experiments it seems to me, as if it was tied
to the "fallthrough"-body -. Fwiw, it's enough to have two
traps to reproduce the crash, and it doesn't matter which
of the two (the former or latter) fires. With separate
bodies I didn't get a crash.