3 ms·
> Some others have also hinted at using an array of function pointers and indexing by switch variable. Doing this explicitly makes no sense -- I'm pretty sure
by haberman 17y ago
> Some others have also hinted at using an array of function pointers and indexing by switch variable.
Doing this explicitly makes no sense -- I'm pretty sure the compiler will compile the switch this way if its heuristics determine that it the fastest way.