David A. Black wrote:

> Hi -
>
> On Wed, 23 Nov 2005, Stefan Kaes wrote:
>
>> David A. Black wrote:
>
>
> Actually I meant what I wrote.  Since 1 is always true, there's no
> point ever testing it for truth.  (I purposely chose an example where
> you get the warning, which you don't if there's any point to the
> test.)

Sorry, I was in a hurry, so missed that a = 1 would, of course, always 
be true.

>
> Another example would be:
>
>   if a = nil
>     b
>   end
>
> which is the same as:
>
>   a = nil
>
> Except actually it isn't, quite since:
>
>   if a = nil
>     b = 1
>   end
>   p b
>
> and
>
>   a = nil
>   p b
>
> are not the same....
>
Because of the way local variable detection works. I know.

-- stefan