From: Yukihiro Matsumoto Date: 2000-03-06T12:23:47+09:00 Subject: [ruby-talk:01740] Re: [Ruby] static buffers The following message is a courtesy copy of an article that has been posted to comp.lang.misc as well. Hi, Dave Thomas 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.