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:

  <http://gna.org/patch/?4803>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to