At 10:56 AM 11/24/97 -0600, Kristen Wild wrote: >So the psuedo code that I have sort of been working on and what I need is >some oppinions... > >enum char_type = {DEAD == -1, PC = 1 << 0, GHOST = 1 << 2, ... , ADMIN = 1 ><< 32} > Well, in one's compliment arithmetic -1 is all bits set. I don't see what this would do for you. Why not be consistent and just set a single bit for death like you do for every other state? Better yet, why use a bit flag at all, can a char have more than one type at any given time? --Sean ---- /'''''''''''''''''\'\ The final aspiration of all coders? | | | | /* Sean Butler */ | | Sean Butler | | | Coder for finality.com 4000 | exit(0); | | Xin@finality.com | | | | | | \\//................\\\// +------------------------------------------------------------+ | 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