[Patch,Fortran,committed] Update download address of coco
Tobias Burnus
burnus@net-b.de
Wed Sep 1 20:24:00 GMT 2010
Toon Moene wrote:
> Tobias Burnus wrote:
>> Let's see what Fortran 2013 will provide - maybe some template/macro
>> programming, which partially replaces CPP?
>
> During the development of the 2008 Standard we shortly discussed a
> Fortran approach to generic programming.
Yes, the "intelligent macros" were for a while in the standard, see for
instance page 8 at http://www.fortran.bcs.org/2007/jubilee/bcs07.pdf.
I believe it would be useful to get template support and lambda
functions into the language - maybe in some way which also allows to use
it for conditional compilation, but I think it is not a simple task to
create a flexible/powerful but still simple feature. Type parameters
seem to move into that direction, but I am not sure they are as useful
as initially hoped for.
I think the F2013 discussion will start in about 1/2 year ... currently,
the focus seems to be on interpretation requests and on the two upcoming
TRs - the one on further interoperability with C (which should be ready
end of this year) and a TR about more coarray features.
> However, after some debate we became convinced that we didn't have
> enough time (2008 was supposed to be a simple "bug fix style update"
> to 2003) to do it right.
If I recall correctly as bystander, there were still some loose ends -
thus postponing the macros seems to be reasonable.
By the way, contrary to some, I think the Fortran 2008 was indeed a
minor update. That's underlined by the number of F2008 features, which
have already been implemented in gfortran:
http://gcc.gnu.org/wiki/Fortran2008Status ; except for coarrays (which
are partially implemented), there is no large item - though submodules
and internal procedures are actual argument could be of medium complexity.
By contrast, Fortran 2003 was a much more demanding standard. While
gfortran has implemented quite a bit, there are still larger features
missing such as IEEE, polymorphism items (such as CLASS(*), some issues
with arrays, FINALization subroutines), UDIO, DT parameters,
(re)allocate on assignment, allocatable char lengths. Cf.
http://gcc.gnu.org/wiki/Fortran2003Status
Let's see how long it takes until gfortran has implemented all new
Fortran 2008 features and until when Fortran 2003 is fully supported;
the former might actually happen first.
Actually, that reminds me that we need to think about how to implement
the DT kind/length parameters; one may need to add additional elements
to the new array descriptor - thus, we need soon to think about this.
Tobias
More information about the Fortran
mailing list