----- Original Message ----- 
From: "Robert Klemme" <bob.news / gmx.net>
Newsgroups: comp.lang.ruby
To: "ruby-talk ML" <ruby-talk / ruby-lang.org>
Sent: Monday, June 02, 2003 9:07 AM
Subject: Re: Return from ensure
...

>
> But you would to this in an rescue clause.  If all is well, return the
> value otherwise rethrow by simple writing "raise" on a line.  (See the
> example in the referenced chapter.)
>
...

I just wanted to save on typing ;-). Now I save the data in "ensure" in an
array initialized before my begin/ensure/end block and return it after the
block. In case of an excetpion, the data is still preserved and no return
executed. It even conveys the intent much better.

Gennady.