Does any language? A switch statement is supposed to be a static comparison. It allows the compiler to do certain optimizations. Otherwise you might as well use an if-else chain.
Donald R. Cossitt
buckaroo
Ranch Hand
Joined: Jan 31, 2003
Posts: 401
posted
0
Yes. Visual Basic, VBA, VBScript are ones I know of that allow that kind of behavior in Select Case myCase
Rich Raposa
Ranch Hand
Joined: Dec 06, 2001
Posts: 46
posted
0
You're not serious, are you? Writing an "if/else if" is a pain in the ass compared to writing a switch statement? Hmmm...next question, please.
Rich Raposa<br /><a href="http://www.javalicense.com" target="_blank" rel="nofollow">http://www.javalicense.com</a><br />Buy Java courseware -> get a free XBox!