From: Dave Thomas Date: 2001-03-24T01:11:24+09:00 Subject: [ruby-talk:13145] Re: How would Ruby say this? David Alan Black writes: > > if res = getValue("What's the frequency..") > > process ... > > else > > no input > > end > > Although... 1.6.3 still gives the "found = in conditional, should be ==" warning > (with -w). I think that warning is only given if the value being assigned is a literal: if a = 1 puts 99 end => -:3: warning: found = in conditional, should be == 99 But... def dave 1 end if a = dave puts 99 end => 99 That means that common idioms (idia?) such as while line = gets Compile without warning. Regards Dave