[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: retry does not work

T. Onoma

11/20/2003 10:51:00 AM

Hi matz,

thanks for reposting, someone should really fix that bug on ruby garden.

so Guy gave me same answer. i have problem with it. could you look at those and let me know? ( you probably already are \:)

-t0

1 Answer

matz

11/20/2003 11:19:00 AM

0

Hi,

In message "Re: retry does not work"
on 03/11/20, "T. Onoma" <transami@runbox.com> writes:

| so Guy gave me same answer. i have problem with it. could you look at those and let me know? ( you probably already are \:)

I'm sorry; which is your problem? [ruby-talk:85791]?

In message [ruby-talk:85791], you wrote:

|were taking about seperation of concerns --that's not bad design. i
|have a library i use for downloading files. i have a user interface
|script that uses the library. things happen in the library and if the
|user has set verbose more i should be able to report them to the user
|*without* having to write special esoteric message passing code.

"resume" won't work well unless both your code and the user code know
each other (the user code must care that raise might resume; your code
must know how to fix up the exception cause). In that case, I think
you can make "retry" work, otherwise you can't make them work well
anyway.

matz.