Online fortran tutorials
Daniel Franke
franke.daniel@gmail.com
Fri Jan 18 17:12:00 GMT 2008
On Thursday 17 January 2008 21:50:59 Ted Byers wrote:
> --- Daniel Franke <franke.daniel@gmail.com> wrote:
> > On Thursday 17 January 2008 18:55:19 Ted Byers
> >
> > wrote:
> > > But I don't know even if there is a fortran
> > > equivalent to the templates I love in C++.
> >
> > As far as I can tell, up to F2003, there isn't.
> > However, one can do generic programming of some sort.
> > Have a look at the FLIBS [1] project of Arjen
> > Markus for examples.
>
> Thanks Daniel. Good to know.
>
> But templates are not just for generic programming,
> although that was the origincal intent. For example,
> using template metaprogramming
I'm aware of the metaprogramming in C++ (Alexandrescu, "Modern C++ Design" may
be recommended here), but there's no way to emulate that in Fortran. That is,
none I know. If you learn about one, I'd like to hear about it :)
I loosly scanned the first draft of F2008. There is nothing prominent that
indicates that templates/metaprogramming will become part of the standard any
time soon ...
More information about the Fortran
mailing list