Re: New style DO syntax?
- From: Joe Krahn <lastname_at_niehs.nih.gov@xxxxx>
- Date: Wed, 26 Apr 2006 10:42:19 -0400
Brooks Moses wrote:
Ken Plotkin wrote:
Why don't you just write your own language, instead of proposing
destructive changes to one you don't understand?
I can't imagine that Joe would get nearly the quality of discussion about his proposals if he were to do that. The benefit of these threads isn't that the proposals have any chance of making it into Fortran in their proposed form just because they're mentioned here, but that they inspire a conversation about what the benefits and disadvantages of adding them might be.
Personally, I find that this sort of conversation tends to significantly improve my understanding of the existing language.
Actually, I am hoping that some of my suggestions make it into the language. One reasonable example that I think has gotten some interest is the idea of something like an "implicit none" for procedures. Many Fortran90 external procedures can be called incorrectly just by not knowing the interface, causing some strange bugs.
In the case of a new DO syntax, it seems to make total sense with all the rest of Fortran. I am not suggesting some wild non-Fortran-like loops, but just to add parenthesis to the DO construct, and to add a statement form:
DO I=1,10
N(I)=1
END DO
becomes:
DO (I=1,10)
N(I)=1
END DO
or, in a short statement form:
DO (I=1,10) N(I)=1
I suggested doing away with label-DO for the new style DO because none of the other block constructs have it. Of course, the old style DO would still be valid indefinitely.
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.
Joe
.
- Follow-Ups:
- Re: New style DO syntax?
- From: Greg Lindahl
- Re: New style DO syntax?
- References:
- New style DO syntax?
- From: Joe Krahn
- Re: New style DO syntax?
- From: Ken Plotkin
- Re: New style DO syntax?
- From: Brooks Moses
- New style DO syntax?
- Prev by Date: Re: New style DO syntax?
- Next by Date: Re: Compiling in 32 vs 64 platform problem
- Previous by thread: Re: New style DO syntax?
- Next by thread: Re: New style DO syntax?
- Index(es):
Relevant Pages
|
|