Re: One more TARGET quiz
- From: Arjen Markus <arjen.markus@xxxxxxxxxx>
- Date: Mon, 27 Aug 2007 04:23:51 -0700
On 27 aug, 13:23, glen herrmannsfeldt <g...@xxxxxxxxxxxxxxxx> wrote:
Arjen Markus wrote:
(snip)
Note, however, that a Fortran program that uses the
same actual argument twice in a call to a routine is
illegal, such as:
call foo(x, x)
I took the above roundabout way because that is what I
think you mean. I do not know whether the above program
is legal though - given the restriction.
No, it is only illegal to modify such variables. If the
subroutine does not modify either one then it is legal.
The ability to test that they are the same could be useful,
but note that:
call foo(x,x(2))
would find them different, even though they are aliased.
-- glen
Ah! That was it. Thanks for correcting me on this one.
Regards,
Arjen
.
- References:
- One more TARGET quiz
- From: Oskar Enoksson
- Re: One more TARGET quiz
- From: Arjen Markus
- Re: One more TARGET quiz
- From: glen herrmannsfeldt
- One more TARGET quiz
- Prev by Date: Re: One more TARGET quiz
- Next by Date: Re: One more TARGET quiz
- Previous by thread: Re: One more TARGET quiz
- Next by thread: Re: One more TARGET quiz
- Index(es):
Relevant Pages
|
|