cardinal-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Cardinal-dev] Does Ruby require restartable exceptions?


From: Dan Sugalski
Subject: Re: [Cardinal-dev] Does Ruby require restartable exceptions?
Date: Thu, 30 May 2002 13:10:00 -0400

At 6:49 PM +0200 5/30/02, Erik Bågfors wrote:
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.

Cool. I was worried you could do something like:

try {
   object.method_which_pitches_exception();
} catch {
  resume;
}

and have the resume jump back into the object's method at the place
where it threw the exception. Not having to do that makes life easier.
--
                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
address@hidden                         have teddy bears and even
                                      teddy bears get drunk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]