Re: fortran 2003 compiler



Alinabi <alexander.the.average@xxxxxxxxx> wrote:

Does anyone now if there is any compiler out there which implements
all the object-oriented features of fortran 2003 (the ones described
in chapter 16 of "Fortran 95/2003 explained" by Metcalf, Reid and
Cohen)?

There are no publically released compilers that support all of it.

NAG has supported a subset of the object-oriented features for quite a
while now. I think it was about 2 years ago that their version 5.0 came
out; it supported enough of the object oriented stuff to experiment with
a little, but was missing parts needed to do much useful in my
evaluation. I was dissapointed when 5.1 came out to see what I judged as
so little more progress for the time between 5.0 and 5.1. The 5.1
release adds a few more of the features, but still omits what I regard
as critical ones. You could probably work around the omissions now, but
I'm not thrilled by having to do such workarounds. Specifically, 5.1
does not yet allow allocatable scalars. As far as I can tell, most, or
at least a large fraction, of polymorphic objects are going to "want" to
be allocatable scalars. You could make them pointers as a workaround,
but that gives up some very handy features and asks for memory leaks.

I have heard 3rd-hand rumors that there is data suggesting that one or
more vendors might have an in-house compiler not yet publically
released. However, I don't consider it a reliable rumor, so perhaps I
shouldn't have even mentioned it. :-)

This came up when I groused about f2008 as being premature because it
was likely to be released before there were any f2003 compilers. I was
told that there probably would be by then. However, I still consider
f2008 premature. Even if one or two compilers are out by then, they
certainly won't have had much user experience on them. And even more so,
any such user experience will not be able to significantly influence the
content of f2008, since the content was allegedly set some time ago.

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.



Relevant Pages

  • Re: fortran 2003 compiler
    ... It was my impression that fortran ... all the object-oriented features of fortran 2003 (the ones described ... There are no publically released compilers that support all of it. ... certainly won't have had much user experience on them. ...
    (comp.lang.fortran)
  • Re: Object-oriented programing (was Re: How old is the average Fortran programmer?)
    ... most C++ programmers seem never to complete. ... programs using the object-oriented features of Fortran 2003? ... There have been papers and a book by Akin on OOP in Fortran 90. ...
    (comp.lang.fortran)
  • Re: Does the Type definition use memory?
    ... "Nicht verzagen, Bruder Grinde fragen." ... For implementations of Fortran 95 and earlier versions ...
    (comp.lang.fortran)
  • Re: My subset selection software in Fortran
    ... does anyone still use Fortran? ... object-oriented features. ... I have used Fortran 95 to program many statistical models. ... John Monahan's book "Numerical Methods of Statistics", ...
    (comp.lang.fortran)