Follow-up Comment #2, patch #4803 (project freeciv):

In general, using assignment within "if":
- Value of the assignment operation is the same as the value assigned ("var =
val" has same value as "val")
- For readability (and to avoid compiler warning) one should use braces when
value of the assignment operation is used "(var = val)" instead of just "var =
val"; compare "var2 = var1 = val" vs "var2 = (var1 = val)" )


Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to