Re: [Freeciv-Dev] removing/replacing enum unit_type_id
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
|
|