Follow-up Comment #3, patch #3043 (project freeciv):

I asked:
> Could we add the usual iterator pattern to specenums?
On a moment's more thought: we can't define "trait_iterate(t) { ... }"
because that would involve a #define parameterised by a #define. The best we
can easily do would be "SPECENUM_ITERATE(trait, t) { ... }" which might be
sufficiently more ugly as to not be worth it (compared to the explicit for
loop).

    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to