Guy Decoux:

>  Well the example was probably
> 
>    def resume_example(x)
>       print x
>       x += 4
>       begin
>          raise if x < 10
>          print x
>       rescue
>          x = 10
>          retry
>       end
>       puts
>    end
 
you have refactored my code to achieve the result. is all code so easily refactored?

    def i_am_libaray_code
      # this is a library call
      # to be used in many differnt apps
      # do not add user interface code!
      raise SpecialWaring, "Warning, incoming!"
      ...
    end

    def resume_example(x)
       begin
          i_am_library_code
       rescue SpecialWaring => e
          puts e
          resume
       end
    end

i can not refactor the lib call to conatin stdout, and i need a message from it about its status. perhaps there is another way to do this. if you know please tell! 

-t0