On Thu 21 Mar 2013 14:53, Andrew Gaylard <a...@computer.org> writes: > (catch #t > (λ () > (throw 'oops)) ; should not crash the vm > (λ () > (display "Success!")(newline))) ; never reached > > the VM still cores; "Success" is never shown. However, you've probably > spotted my mistake: the handler should be (λ (key . args) ... ).
The core dump is another bug. but fixing the handler is the key thing: > (catch #t > (λ () > (throw 'oops)) ; should not crash the vm > (λ (key . args) > (display "Success!")(newline))) ; works! > > ...solves the problem, and the VM doesn't core any more. Yep Happy hacking :) A -- http://wingolog.org/