Re: switch bug?

new topic     » goto parent     » topic index » view thread      » older message » newer message
euphoric said...
Jeremy Cowgar said...
Switch Select said...

Can we also have the select statement, that doesn't fall through.

Fall through was designed into switch for its power. I do not think we will introduce a select just for the purpose of non-fall through.

What construct would you use if you had, say, 10 branches that were mutually exclusive? Is if...elsif...endif just as fast as the switch statement?

Umm, I'd use a switch statement and make sure to insert the "break" after every clause.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu