Follow-up Comment #3, bug #13807 (project freeciv):

> If you are worried that you cannot use static initializers 
> with unions, you need not be, since you can use the 
> syntax: 
> 
> union foo { 
> int i; 
> const char *s; 
> bool b; 
> }; 
> 
> union foo f1 = { .b = TRUE }; 
> union foo f2 = { .s = "hi" }; 

This will help! The 'static initializers' error message was
the reason for me to try it with a function. Is an union portable to win,
...?

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?13807>

_______________________________________________
  Nachricht geschickt von/durch Gna!
  http://gna.org/


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

Reply via email to