Hello,
In order to convince myself that I have a clue how some things
in Fortran 2000 actually work, I'm writing a few examples.
My first such effort is to try to make a module which provides
an interface to a Fortran program wishing to use the POSIX pthreads
library. This exercises the "C Interoperability", Section 15 stuff.
You may download this file by surfing to my home page,
http://users.erols.com/dnagle
and clicking on "Go directly to the Fortran 2000 examples" link.
Sorry to route you through my home page, but it's the only one
with a counter, and I like to have some idea how many folks
have an interest in these things. I hope to add some more
example files as time permits.
In short, I discovered that some things are easy, and some things
may not be done as portably as I would have hoped. This is due
to the fact of C preprocessing, which means that, in C, what you
see is not necessarily what you get.
Some vendors have run this file through their compilers, which
have more or fewer Fortran 2000 features implemented. Their
feedback found some blunders. They wish to remain anonymous,
possibly so as not to tell each other how far along they are
in their Fortran 2000 efforts. The remaining errors, of course,
are mine.
Your comments will be most welcome by me, in this forum or privately.
TIA
--
Cheers!
Dan Nagle
Purple Sage Computing Solutions, Inc.
|