John Bray asked:
> 3) I've never tried writing explicit interfaces for F77 code. Has anyone
> else tried this, and how do they handle f77 style variable declarations
> like INTEGER a(*)?
By "INTEGER a(*)". Just because something was in F77 doesn't mean that
one cannot use it in F90 - quite the reverse in fact. Assumed-size arrays
are still in F95 (and anyway I'm not aware of any F95 compiler that doesn't
support the "deleted" features of the language).
The only glitch I'm aware of is for (ugh) assumed-length character
functions. This is an amazingly ugly construct where the function itself
was defined as "CHARACTER*(*)", but the declared from where it is called
with a specific character length e.g. "CHARACTER*6". One cannot describe
such a function in an interface block because of the requirement that
the lengths mismatch! Very rare to see one of these though (unlike
assumed-length character dummy arguments, which are happily supported in
interface blocks).
Cheers,
--
...........................Malcolm Cohen, NAG Ltd., Oxford, U.K.
([log in to unmask])
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp
|