On Feb 13, 2:24 pm, "Jason Mayer" <slam... / gmail.com> wrote:
> I ran across this line of code today, and it doesn't make sense to me.
>
>   if ((klass = CommDispatcher.check_hash(path)) == nil)
>
> How would that value ever equal nil?  I thought that if klass failed to be
> assigned to the value of CommDispatcher.check_hash(path) then the value
> would be false and if it was assigned to the value of
> CommDispatcher.check_hash(path) it would be true..  How would it be nil?
>
> Thanks!

I'm not familiar with the CommDispatcher class, but it looks like
klass will be assigned whatever the return value of check_hash()
returns, whether that's nil or false or something else.

Jeff