From: Shannon Fang Date: 2002-12-06T11:16:10+09:00 Subject: Re: on error resume next I need the logic, not to squeeze into vb... pls see my sample code, I don't think the solution is as neat as vb. For example: def error callcc do |$on_error_resume_next| puts "Before Error..." raise "ERROR_DELIBERATE" puts "after error" end puts "I'm back" end begin error puts "Finishing..." rescue $on_error_resume_next.call end The "after error" will not be printed. If I create a callcc block for every possible error, that will be a headache What do you think? S On Fri, 6 Dec 2002 10:37:00 +0900 ahoward wrote: > On Fri, 6 Dec 2002, Gavin Sinclair wrote: > > > G> NOOOOOO!!!! My head hurts!!!!! > > lol. > > i couldn't actually think of a shorter way to do it! besides, that's what one > gets for trying to squeeze ruby into a vb box - a headache ;-) > > -a > > -- > > ==================================== > | Ara Howard > | NOAA Forecast Systems Laboratory > | Information and Technology Services > | Data Systems Group > | R/FST 325 Broadway > | Boulder, CO 80305-3328 > | Email: ahoward@fsl.noaa.gov > | Phone: 303-497-7238 > | Fax: 303-497-7259 > ====================================