[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Cardinal-dev] Does Ruby require restartable exceptions?
From: |
Erik Bågfors |
Subject: |
Re: [Cardinal-dev] Does Ruby require restartable exceptions? |
Date: |
30 May 2002 18:49:27 +0200 |
On Thu, 2002-05-30 at 18:38, Dan Sugalski wrote:
> Here's a question. Does Ruby require that you be able to catch an
> exception then restart or resume from where the exception was thrown?
AFAIK no,
What you do in ruby is restart by hand. Something like this
begin
do_something # This might throw an exception
do_more
rescue
retry # This will move you back to "begin"
# and do_something will be called
# again.. not do_more which is what you mean right?
end
I might be wrong on this though.
/Erik
--
Erik Bågfors | address@hidden
Supporter of free software | GSM +46 733 279 273
fingerprint: 6666 A85B 95D3 D26B 296B 6C60 4F32 2C0B 693D 6E32