Concerning Werner Schulz's questions about using the pointer attribute for
generic resolution, Richard Maine wrote:
> Also, try to think ahead and imagine a generic swap subroutine.
> It is NOT possible in Fortran to write a generic swap routine for pointers
> and non-pointers that refer to the same type unless all pointers are wrapped
> into user-defined types. What kind of generic swap procedure is that?
> Phheeewwww
Swap should be an intrinsic operation, not a generic procedure.
Example spellings might be A :=: B and A <=> B for target and pointer
swap, respectively.
Best regards,
Van Snyder
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|