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: Pat Eyler
Subject: Re: [Cardinal-dev] Does Ruby require restartable exceptions?
Date: Thu, 30 May 2002 14:23:01 -0400 (EDT)

On Thu, 30 May 2002, Dan Sugalski wrote:

> 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.


How would this impact continuations?

-pate (proving that a little knowledge is a dangerous thing)


> --
>                                          Dan
>
> --------------------------------------"it's like this"-------------------
> Dan Sugalski                          even samurai
> address@hidden                         have teddy bears and even
>                                        teddy bears get drunk
>
> _______________________________________________
> Cardinal-dev mailing list
> address@hidden
> http://mail.freesoftware.fsf.org/mailman/listinfo/cardinal-dev
>




reply via email to

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