GCC at least flags things like while(a=b) as suspicious. Most of the time what you mean is while(a==b) so in this particular compiler this coding construct of (expression opr Lvalue) is of less utility in preventing typo problems. so when I actually mean while(a=b) I get forced to write it while((a=b) != 0) which is probably better coding practice but not idiomatic C.
↧