[log in to unmask] writes:
> Hi,
> We have run into a problem with some alledged fortran 90 code. Is
> it legal fortran 90 to do the following in a module?
[shows a module that contains a module procedure, which inturn
contains internal procedures]
Yes, but
1. This is the only case where "nesting" is allowed. A module
procedure may have internal procedures. But you can never have an
internal procedures that in turn contain other internal procedures.
No real reason that O know it couldn't work in principle. Thats
just not a complication that was choosen to add as far as I know.
2. At least old versions of the NAG compiler used to have problems
with this. I haven't checked "recently" (in the last several years).
It may well have been fixed. But then, you might still have an
older version anyway. And I haven't tried it with other compilers.
(But it is supposed to work).
--
Richard Maine
[log in to unmask]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|