From: "Iñaki Baz Castillo" Date: 2008-04-03T08:27:39+09:00 Subject: How to use "retry" into two deep begin/rescue/end ? Hi, in the code below I want "retry/break/XXXXX" (undefined) in SECOND BEGIN to go back to FIRST BEGIN when "raise" instead of SECOND BEGIN but it goes to SECOND BEGIN. I think it's the expected behaviour but maybe there is a way to get what I want, is it possible? ------------------------------------------------------------ class MyTcpServer < GServer def serve(io) loop do begin # FIRST BEGIN puts "welcome" ... ... begin # SECOND BEGIN raise rescue puts "ERROR" retry/break/return/XXXXX # Restart from FIRST BEGIN (doesn't work) end ... ... rescue $stderr.print "serve(io) ERROR: " + $! end end # loop do end # def serve(io) ------------------------------------------------------------ Thanks a lot. -- Iñaki Baz Castillo