Re: New style DO syntax?
- From: Joe Krahn <lastname_at_niehs.nih.gov@xxxxx>
- Date: Tue, 25 Apr 2006 18:01:52 -0400
Gordon Sande wrote:
....
The camels nose was FORALL so folks keep suggesting decorations
on DO. The question is not what Universal Iteration Construct
one could design but rather what is in keeping with the Fortran
style and is a worthwhile extension/addition.
That is why I suggested a "FORALL" style construct, which also follows the general syntax of all of the other block-constructs:
WHERE, FORALL, IF-THEN, SELECT-CASE, and even DO-WHILE, as well as the F2003 constructs ASSOCIATE and SELECT-TYPE.
Of all of these constructs, DO is the big outlier, with a lot of caveats, clearly due to the long history. It seems that it is very much in line with current Fortran Standards to include an updated DO syntax that follows the traditional DO loop, but is more uniform with all of the related constructs.
Arguing for other completely different loop constructs will almost certainly go nowhere. Just be thankful that EXIT and CYCLE where implemented.
Joe
.
- Follow-Ups:
- "GOTO considered harmful" considered harmful. Re: New style DO syntax?
- From: Kevin G. Rhoads
- "GOTO considered harmful" considered harmful. Re: New style DO syntax?
- 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
- New style DO syntax?
- Prev by Date: Re: New style DO syntax?
- Next by Date: Re: New style DO syntax?
- Previous by thread: Re: New style DO syntax?
- Next by thread: "GOTO considered harmful" considered harmful. Re: New style DO syntax?
- Index(es):