PDA

View Full Version : Re: [LF] GOTO label


Lahey Support
08-15-2003, 01:24 AM
Lahey User wrote:
>
> At 09:21 10-02-2000 -0800, you wrote:
> >
> > Terrance Wright suggested that this whole debate about
> > GOTOs and programming style was about over. How can
> > we finish it without a lament for the "good old days" of
> > (some) FORTRAN II (compilers) in which statements
> > could be labeled with alphameric labels, and when this
> > was appropriately done, then
> >
> > GO TO HELL
>
> In Fortran 90 you still can !!
>
> integer :: hell
> assign 200 to hell
>
> goto hell
>
> 200 continue

Just to add my $0.02 worth here, the following construct
would be more satisfactory:

integer :: hell
assign 666 to hell

goto hell

666 continue ! hell starts here

(...)

--
C.B.Vincent Goudreault, Ing. tél: (514) 855-5001 poste 53442
Aérodynamique, Dept 773 fax: (514) 855-2497
Bombardier Aéronautique
1800 Marcel-Laurin, St-Laurent, Québec H4R 1K2 CANADA
--------------------------------------------------------------------------
To unsubscribe from Fortran Forum, send a message to [address removed]
with the following command as the first and only line of the message body:
unsubscribe fortran
--------------------------------------------------------------------------