"GOTO considered harmful" considered harmful. Re: New style DO syntax?
- From: "Kevin G. Rhoads" <kgrhoads@xxxxxxxxxxxx>
- Date: Wed, 26 Apr 2006 15:48:49 +0000
The parenthetic DO could include an end label something like this:
DO (I=1,10,END=100)
N(I)=1
100 CONTINUE
However, I would expect that all other block constructs should then have
the same option for using an end label.
Fine, but then generalize the labels to be alphanumerics, perhaps terminated by a single colon.
MHOO: The main problem with goto targets in Fortran is not the GOTO, it is the numeric labels.
"GOTO considered harmful" considered harmful.
.
- Follow-Ups:
- References:
- New style DO syntax?
- From: Joe Krahn
- Re: New style DO syntax?
- From: *** Hendrickson
- Re: New style DO syntax?
- From: Gordon Sande
- Re: New style DO syntax?
- From: James Giles
- Re: New style DO syntax?
- From: Gordon Sande
- Re: New style DO syntax?
- From: Joe Krahn
- New style DO syntax?
- Prev by Date: Re: New style DO syntax?
- Next by Date: Re: Intel Visual Fortran
- Previous by thread: Re: New style DO syntax?
- Next by thread: Re: "GOTO considered harmful" considered harmful. Re: New style DO syntax?
- Index(es):