[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:01727] Re: [Ruby] static buffers

From: Dave Thomas <Dave@...>
Date: 2000-03-05 17:41:30 UTC
List: ruby-talk #1727
The following message is a courtesy copy of an article
that has been posted to comp.lang.misc as well.

Yukihiro Matsumoto <matz@netlab.co.jp> writes:

> Well, we are now discussing about extending syntax to specify variable
> to be assigned.
> 
>   rescue FriendlyException => friendly
> 
> Or, 
> 
>   rescue FriendlyException in friendly
> 
> Or something else.  Any good idea?

What about using parameter passing semantics:

  rescue FriendlyException(friendly)

and then extend it to

  rescue FriendlyException, UglyException(mixed)

and

  rescue (anyException)

In a way, the Exception object you pass in _is_ like a parameter to
the rescue pseudo-block.



Regards


Dave

In This Thread

Prev Next