Warnings on assignments in conditionals?

David Heinemeier Hansson wrote:

I did understand the distinction, I was just puzzled that Ruby
would
throw a warning on something that worked as intended and as
advertised
although it would probably be considered ambigious.

Probably that’s why it’s only a warning.

Do not most modern C and C++ compilers give similar warnings? I
thought gcc did (or could be made to) when I last touched C++.
(Which, granted, was over 7 years ago.)

···

Do you Yahoo!?
Yahoo! Hotjobs: Enter the “Signing Bonus” Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus