Re: Embedded switches?

2009-09-28 Thread Kay C Lan
On Tue, Sep 22, 2009 at 4:03 AM, Mark Wieder wrote: > > Actually there's no speed penalty for if/then vs switch constructs. > They compile down to the same comparisons. If you're going to be > applying the same tests repeatedly then you may find a negligible > difference, but overall I wouldn't w

Re: Embedded switches?

2009-09-21 Thread Sarah Reichelt
On Tue, Sep 22, 2009 at 5:48 AM, Richmond Mathewson wrote: > I have to use either: > > 1. A multi-case switch statement with many sub-switch statements inside it, > > or > > 2. A multi-case switch statement with many IF . . . THEN statements inside > it, > > or > > 3. Many IF . . . THEN statements

Re: Embedded switches?

2009-09-21 Thread Mark Wieder
Richmond- Monday, September 21, 2009, 12:48:58 PM, you wrote: > I have to use either: > 1. A multi-case switch statement with many sub-switch statements inside it, > or > 2. A multi-case switch statement with many IF . . . THEN statements > inside it, > or > 3. Many IF . . . THEN statements

Embedded switches?

2009-09-21 Thread Richmond Mathewson
I have to use either: 1. A multi-case switch statement with many sub-switch statements inside it, or 2. A multi-case switch statement with many IF . . . THEN statements inside it, or 3. Many IF . . . THEN statements with many IF . . . THEN statements inside them. Number 3. is obviously g