Re: Bitfields from "George" at Sep 25, 97 10:31:58 pm

From: Andrew Helm (ashe@IGLOU.COM)
Date: 09/25/97

> I have a project in mind to revamp the flag system of CircleMUD to allow
> *much* easier addition of extra flags. (You'll still have to convert the
> pfile though.) I have two different approaches in mind, one in bitfields,
> one with bitvectors, both seem the same in terms of complexity.
> Will be a really cool change....

Don't use bitfields. The syntax for their use is pretty much the only
thing about them that isn't implementation defined. They may use up more
space than a bitvector system (depending on alignment requirements and
such), and accessing them requires at least as many instructions as
bitvectors. They may be completely portable, but bitvectors are so much

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/08/00 PST