On Mon, 22 Sep 1997, Franco Gasperino wrote:
-+ I agree about the sprintbit, however by removing the high bit and allowing
-+it to be used would tend to throw a lot of new programmers for a loop. A
-+32 bit value using the last bit for flags would probably not be used by quite
-+a few people, not that it is a huge advantage to begin with.
Huh? CircleMUD already uses all 32 bits, even though the 32nd is
often signed (eg., turns everything negative when set). That's what
the "bitvector < 0" check is for in sprintbit(). Changing them to
unsigned will clarify it for coders universally (although not many
newbies even understand bitvectors). Unless I'm misunderstanding...?
By 32nd, I of course mean the *last* bit, which is actually the 31st
(since numbering starts with 0 in C).
--
Daniel Koepke -:- dkoepke@california.com -:- [Shadowlord/Nether]
Think.
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST