From: Eric Hodel Date: 2005-11-22T09:41:27+09:00 Subject: Re: semenatics of if/unless/while statement modifiers On Nov 21, 2005, at 4:37 PM, Stefan Kaes wrote: > Mauricio Fern�ndez wrote: > >> 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]. >> >> > And how do I get to [ruby-talk:166828]? From the list archive: http://ruby-talk.org/ruby/ruby-talk/index.shtml -- Eric Hodel - drbrain@segment7.net - http://segment7.net FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04