Re: Bit Flags

From: George Greer (greerga@circlemud.org)
Date: 06/05/01


On Wed, 6 Jun 2001, Patrick M. O'Laughlin wrote:

> George Greer wrote:
>> On Tue, 5 Jun 2001, Patrick M. O'Laughlin wrote:
>>
>> >Is there another way to increase the number of flags available
>> >besides using the 128-bit patch method?
>>
>> 1) Add more variables (you get 32 more at a time)
>>    i.e.) AFF2_FLAGGED, PLR3_FLAGGED, etc.
>>
>> 2) Make bitvectors 'unsigned long long' (64 bits each)
>>
>> 3) Both of the above.
>>
>> 4) Bitfields. (Rather drastic change)
>
>Are there any major advantages that the 128-bit patch has over option #2?

128-bit patch allows arbitrary-size bits (uses arrays).  #2 is limited to
64 without doing #1.

--
George Greer
greerga@circlemud.org

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/05/01 PST