Re: #defines -> enums?

From: Mike Breuer (mbreuer@NEW.RR.COM)
Date: 08/14/01


On Tue, 14 Aug 2001 13:20:46 -0300, Juliano Ravasi Ferraz
<jferraz@linkway.com.br> wrote:

>enum {
>  ROOM_DARK = (1 << 0),
>  ROOM_DEATH = (1 << 1),
>  ...
>};

I would use caution in converting anything that might go into a bitvector,
especially if you eventually plan to expand it beyond the size of an
integer (32 bits for most of us).

Mike

--
   +---------------------------------------------------------------+
   | 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/06/01 PST