|
|
Keith Thompson <kst-u@xxxxxxx> wrote:
>
> Having said that, there's nothing forbidding a compiler from treating
> a switch statement like an if/else chain anyway (and it will probably
> have to do something like that if the range of cases is very large).
Indeed, most compilers have a number of different strategies for
implementing switch statements that they choose from based on things
like the number of cases, their range, and density.
-Larry Jones
When I want an editorial, I'll ASK for it! -- Calvin
|
|