find_class_bitvector()

From: Edward J Glamkowski (eglamkowski@angelfire.com)
Date: 04/05/02


So, I'm adding some classes and it hits me:
can't find_class_bitvector() be written as:

long find_class_bitvector(char arg)
{
  int c = parse_class(arg);

  return (c != CLASS_UNDEFINED ? (1 << c) : 0);
}


Such a change would make one less thing to worry about when adding
new classes, not to mention saving quite a bit of typing if you are
adding multiple new classes at once.

Bleh.



Is your boss reading your email? ....Probably
Keep your messages private by using Lycos Mail.
Sign up today at http://mail.lycos.com

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT