From: ts Date: 2002-09-18T23:20:05+09:00 Subject: Re: Rescue clause or equivalent for catch? >>>>> "J" == James F Hranicky writes: J> catch (:error) { J> # Do stuff J> do_stuff() # throws :error J> do_more_stuff() # throws :error J> finish_stuff() # throws :error J> rescue J> # Oops, stuff failed, clean it J> cleanup_stuff() J> end You can write if catch (:error) do do_stuff() # throws :error, true do_more_stuff() # throws :error, true finish_stuff() # throws :error, true nil end cleanup_stuff() end Important to call 'throws :error, true' Guy Decoux