On Tue, May 08, 2007 at 01:22:10PM -0700, Bryan Irvine wrote:
> I need a fairly simple menu, and have thought about just simple
> selects but figured now would also be a good time to learn something
> new as well. It's nothing so complex that I need to go ncurses to do.
> Just a basic <option 1> then <option 3> then <run some command>
> thing.
My front-ends I do in python. It doesn't have a case/select. I just
use if/then/elif/....
Then there's Fortran with computed gotos; very slick. I forget the
syntax but is something like goto (10+choice)
11 ch1()
...
12 ch2()
...
13 ch3()
...
It means that only one computation takes place instead of one comparison
for each choice until one matches.
Doug.