On Fri, 6 Dec 2002, Shannon Fang wrote:

> Not what I want :(  I want "On Error Resume Next"... If that is
> available in ruby.

  #!/usr/local/bin/ruby

  def error
    callcc do |$on_error_resume_next|
      raise "ERROR_DELIBERATE"
    end
    puts "I'm back"
  end

  begin
    error
    puts "Finishing..."
  rescue
    $on_error_resume_next.call
  end


>> I'm back
>> Finishing...


-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
 ====================================