From: Alan Chen Date: 2002-12-08T04:04:08+09:00 Subject: Re: (OT) Re: elseif? On Sun, Dec 08, 2002 at 03:36:07AM +0900, Tim Hunter wrote: > Hal, have you ever used FORTRAN's computed GOTO statement? IIRC, you > supply an expression followed by a list of line numbers (line numbers > are the same as C labels, except they're, well, numbers). Control > branches to the 1st, 2nd, 3rd, whatever line number based on the value > of the expression. > > (This is based on my >20 year old memory of FORTRAN 77, so I could be > off in the details. I believe "computed GOTO" is deprecated in current > FORTRANs. :-) I remember that. It was the closest thing FORTRAN 77 had to a case statement. IIRC F90 now has SELECT CASE. -- Alan Chen Digikata Computing http://digikata.com