I
Iñaki Baz Castillo
Hi, in the code below I want "retry/break/XXXXX" (undefined) in SECOND BEGI=
N=20
to go back to FIRST BEGIN when "raise" instead of SECOND BEGIN but it goes =
to=20
SECOND BEGIN.
I think it's the expected behaviour but maybe there is a way to get what I=
=20
want, is it possible?
=2D-----------------------------------------------------------
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)
=2D-----------------------------------------------------------
Thanks a lot.
=2D-=20
I=C3=B1aki Baz Castillo
N=20
to go back to FIRST BEGIN when "raise" instead of SECOND BEGIN but it goes =
to=20
SECOND BEGIN.
I think it's the expected behaviour but maybe there is a way to get what I=
=20
want, is it possible?
=2D-----------------------------------------------------------
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)
=2D-----------------------------------------------------------
Thanks a lot.
=2D-=20
I=C3=B1aki Baz Castillo