??? 08/15/06 23:28 Read: times |
#122320 - Errr... Responding to: ???'s previous message |
Goran Igic said:
If the number of cases is lower than 3 if/than will produce better (faster/shorter) code Well, obviously! If the number of cases is lower than 3, then that must mean only 2 cases - which is clearly just an if-then-else! With only 2 cases, I suspect that any decent compiler would implement the switch as an if-then-else anyhow! |