Michael Metcalf wrote:
>
> Message text written by Fortran 90 List
> >My reference says that the
> intent(in) applies to all subobjects, but a pointer object
> can't have the intent attribute. Is it allowed that the
> target of the pointer be modified as long as the pointer
> itself is not?<
>
> I don't know what your reference is, but please note that the following
> paragraph was added to the end of Section 5.9 of "Fortran 90/95
> Explained", as of the 1999 printing (Revised Edition):
>
> "If a dummy argument is of a derived type with pointer components,
> its intent attribute refers to the pointer association status of those
> components. For example, if the intent is in, no pointer assignment,
> allocation, or deallocation is permitted. The intent attribute has no
> bearing on the values of the targets of the pointer components."
>
> Does that help?
Precisely what I needed to hear, thanks! I guess it's time to update
my copy of "explained".
Neil
--
Neil N. Carlson [log in to unmask]
Motorola Computational Materials Group [log in to unmask], [log in to unmask]
Los Alamos National Laboratory Voice: 505-665-1220
Mailstop B221, Los Alamos, NM 87545 FAX: 505-665-5757
|