On Mon, 2002-06-10 at 07:47, Lionel, Steve wrote:
> [...]
> My reading of F95 suggests that this is the correct behavior. On page 53,
> starting with line 13, it says:
>
> Constraint: A dummy argument with the INTENT(IN) attribute, or a subobject
> of such a dummy argument, shall not appear as
>
> (1) The 'variable' of an 'assignment-stmt'
> ...
>
> In the case in question, the dummy argument is 'a', the subobject is a%x,
> and a%x appears as the 'variable' in an assignment statement, therefore this
> is disallowed since 'a' is INTENT(IN).
But it depends on the context as to what a%x "is". In the expression
a%x = 1, a%x isn't the pointer at all but rather the target, while in
a%x => ..., a%x is the pointer. I think this relates to Richard Maine's
statement in the previous thread that the target is not a subobject of
the dummy argument.
--
Neil N. Carlson Motorola, Los Alamos Research Park
Motorola Labs / PSRL 4200 W. Jemez Road, Suite 300
Computational Nanoscience Group Los Alamos, New Mexico 87544
[log in to unmask] Fax: (505) 663-5150
Voice: (505) 663-5106 Pager: [log in to unmask] or
888-946-2817
|