[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Re: precedence of single-line rescue and assignment

Yukihiro Matsumoto

5/8/2008 2:07:00 AM

Hi,

In message "Re: precedence of single-line rescue and assignment"
on Thu, 8 May 2008 10:10:07 +0900, matt@tidbits.com (matt neuburg) writes:

|> y += boom rescue fine
|>
|> is not equivalent to
|>
|> y = y + boom rescue fine
|>
|> that is not what I understand under syntactic sugar, but the behavior
|> is all the same in MRI1.8 YARV and Jruby, that is not a nice thing.
|> Well spotted indeed.
|
|If we think this might be a bug, how do I report it? m.

I recognized the problem.

matz.

1 Answer

matt

5/8/2008 4:37:00 AM

0

Yukihiro Matsumoto <matz@ruby-lang.org> wrote:

> Hi,
>
> In message "Re: precedence of single-line rescue and assignment"
> on Thu, 8 May 2008 10:10:07 +0900, matt@tidbits.com (matt neuburg) writes:
>
> |> y += boom rescue fine
> |>
> |> is not equivalent to
> |>
> |> y = y + boom rescue fine
> |>
> |> that is not what I understand under syntactic sugar, but the behavior
> |> is all the same in MRI1.8 YARV and Jruby, that is not a nice thing.
> |> Well spotted indeed.
> |
> |If we think this might be a bug, how do I report it? m.
>
> I recognized the problem.

Wonderful, thanks! m.

--
matt neuburg, phd = matt@tidbits.com, http://www.tidbits...
Leopard - http://www.takecontrolbooks.com/leopard-custom...
AppleScript - http://www.amazon.com/gp/product/...
Read TidBITS! It's free and smart. http://www.t...