Aleksandar Donev <[log in to unmask]> asked:
> Hello,
>
> A question about Fortran 95:
>
> module A
> interface X
> ...
> end interface X
> end module A
>
> module B
> interface X
> ...
> end interface X
> end module B
>
> module C
> use A
> use B
> end module C
>
> What specific are in the generic wrapper X in module C (this may not be
> legal). The ones from A, B or both. What if I use A in module B?
It's all OK so long as in any scoping unit all specific interfaces within
the union of generics with a particular <generic-spec> that are accessible
at that point satisfy the restrictions on generic definitions (14.1.2.3 in
the F95 standard).
This is a cool feature that I use a lot.
--
Van Snyder | What fraction of Americans believe
[log in to unmask] | Wrestling is real and NASA is fake?
Any alleged opinions are my own and have not been approved or disapproved
by JPL, CalTech, NASA, Sean O'Keefe, George Bush, the Pope, or anybody else.
|