|
|
|
|
|
by Freaky
6067 days ago
|
|
When gcc warns you, it tells you to wrap it in parens if you really mean it: "warning: suggest parentheses around assignment used as truth value". Your PHP example wouldn't raise a warning from gcc, because it already is. I find assignment-in-conditional more useful in loops than if's, since you can't just plonk the assignment on the previous line. |
|