Re: [NEWBIE][Code] Race Abilities

From: Daniel A. Koepke (dkoepke@circlemud.org)
Date: 12/15/02


On Sun, 15 Dec 2002, Mike Stilson wrote:

> And you missed the biggest typo ;)
> the [var] << 1; 's should all be [var] <<= 1;

Really, they should all be

  foo *= 2;

The compiler's smart enough to translate division and multiplication by
powers of two into shifts without our help.  Unfortunately, not all humans
are smart enough to do the reverse.

-dak

--
   +---------------------------------------------------------------+
   | 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