[#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:01740] Re: [Ruby] static buffers

From: Yukihiro Matsumoto <matz@...>
Date: 2000-03-06 03:23:47 UTC
List: ruby-talk #1740
The following message is a courtesy copy of an article
that has been posted to comp.lang.misc as well.

Hi,

Dave Thomas <Dave@Thomases.com> writes:

|>   rescue FriendlyException => friendly
|> 
|> Or, 
|> 
|>   rescue FriendlyException in friendly
|> 
|> Or something else.  Any good idea?
|
|What about using parameter passing semantics:
|
|  rescue FriendlyException(friendly)

In currnt syntax rules, rescue clause takes list of arbtrary
expressions which return exception object, so that
`FriendlyException(friendly)' cannot be distinguished from
invocation of the method named `FriendlyException'.

Some proposed 

  rescue FriendlyException do |friendly|

But I think it looks like blocks too much, since rescue works
differently from blocks.
							matz.

In This Thread