> I know we discussed this here earlier, but I never got a clear answer and
> would appreciate one from the committee members: Why exactly was passing an
> internal procedure as an actual argument for a dummy procedure forbidden in
> F90/95? Someone mentioned recursive hosts and the need to pass the stack
> info in this case, but it seems only this case could have been forbidden,
> not the general case. Even if the answer is "just because", I would
> appreciate knowing.
The whole point of an internal procedure is that it is only visible to
its host. Note that a MODULE procedure CAN be passed as an actual
argument. Can you think of a situation where you would like to pass an
internal procedure but it would be inconvenient to pass a module
procedure?
If you take all your declarations and put them in a module to be used by
your former host procedure and the former internal procedure and then
pass the module procdure as the actual argument, you will get the same
effect.
|