Complete.Org: Mailing Lists: Archives: freeciv-dev: June 1999:
Re: [Freeciv-Dev] Programing style
Home

Re: [Freeciv-Dev] Programing style

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx (Freeciv developers)
Subject: Re: [Freeciv-Dev] Programing style
From: Reinier Post <rp@xxxxxxxxxx>
Date: Fri, 11 Jun 1999 12:26:35 +0200

> The usual approach is:
> 
> struct build_item {
>   union bi_thing {
>     enum unit_type unit;
>     enum improvement_type improvement;
>   } bi;
>   int bi_type;
> }

Yes, I understand, but that makes me wondert whether using unions is still
worthwhile.

-- 
Reinier

[Prev in Thread] Current Thread [Next in Thread]