Re: Class.c

From: Dante Mavec (
Date: 06/21/02

> But that's not a switch(), it's a bunch of if...else.  You were talking
> about switch the language construct, or were you trying to be more broad?.
> The switch statements are worse because they have large numbers of
> different values while backstab_mult() just has a very few branches. And
> backstab_mult() is used even less frequently the saving throws table.

The comment is directly after the whole pile of switch statements used for
the saving throws and exp tables.
It uses an equation instead of a whole pile of switches.

I assumed that the comment implied that switches were faster than equations.
Was I wrong?

 - Dante

   | FAQ: |
   | Archives: |
   | Newbie List:   |

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