Complete.Org: Mailing Lists: Archives: freeciv-dev: August 1999:
Re: [Freeciv-Dev] removing/replacing enum unit_type_id
Home

Re: [Freeciv-Dev] removing/replacing enum unit_type_id

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: Re: [Freeciv-Dev] removing/replacing enum unit_type_id
From: Falk Hueffner <falk.hueffner@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: 30 Aug 1999 11:21:14 +0200

David Pfitzner <dwp@xxxxxxxxxxxxxx> writes:

> Now that the enum unit_type_id does not really enumerate the
> unit types (due to rulesets, and variable number of unit types)
> I would like to remove/replace the enum, as previously mentioned.
> [...] 
> 2. Using plain 'int' may be more efficient.  (On the other
> hand 'unsigned char' _may_ be more space efficient, but in
> practice probably not due to alignment/padding, or negligible
> in any case.)  

I think this is better than char, because you're right about int being 
faster. Also, it would make it easier to allow more than 255 unit
types (ok... not really useful, but I dislike limits...)

        Falk


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