On Tue, Nov 22, 2005 at 08:22:59AM +0900, Stefan Kaes wrote:
> Hi all,
> 
> I found that
> 
>  if (variable = expr)
>    ... do something with variable ...
>  end
> 
> works, whereas
> 
>  ... do something with variable ... if (variable = expr)
> 
> doesn't.
> 
> I can't find a good reason why these two forms differ in semantics.

See [ruby-talk:166828].

-- 
Mauricio Fernandez