Re: One more TARGET quiz
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Mon, 27 Aug 2007 03:25:59 -0800
Oskar Enoksson wrote:
(snip)
SUBROUTINE FOO(I1,I2)
INTEGER, TARGET :: I1
INTEGER, TARGET :: I2
INTEGER, POINTER :: IP
IP => I1
IF(ASSOCIATED(IP,I2)) WRITE(*,*) 'Yes!' END SUBROUTINE FOO
Why is it necessary to copy only one of them to a pointer?
It would seem to me that both or neither should by copied.
(That is, it should be symmetrical in I1 and I2.)
-- glen
.
- Follow-Ups:
- Re: One more TARGET quiz
- From: Oskar Enoksson
- Re: One more TARGET quiz
- References:
- One more TARGET quiz
- From: Oskar Enoksson
- One more TARGET quiz
- Prev by Date: Re: One more TARGET quiz
- Next by Date: Re: Intel 10 for MAC OSX ?
- Previous by thread: Re: One more TARGET quiz
- Next by thread: Re: One more TARGET quiz
- Index(es):
Relevant Pages
|
|