Re: One more TARGET quiz



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

.



Relevant Pages

  • Re: Direct and Indirect fire a set of definitions.
    ... [SNIP] ... >> relationship between the observation post and the target and the ... you still supply a target location, and the computation back at battery/ship ... the target data was preferably sent as polar plots - direction, distance, ...
    (sci.military.naval)
  • Re: Anti-Gun Hysteria!
    ... had more deadly methods available to him, ... Because he could and his target was known to be disarmed. ... generally see as a means to thier end. ...
    (talk.politics.guns)
  • Re: Nutty Prof
    ... estimating the distance to the target by eye. ... I haven't thrown a knife in years; in my younger days, ...
    (soc.culture.scottish)
  • Re: The annotated annotated annotated C standard
    ... This Is Usenet. ... You don't see that you type above "to miss the wrong target every ... most of the useless "flame" wars and bullying campaigns occuring here. ...
    (comp.programming)
  • Re: Network Connection Issue (File Sharing)
    ... <SNIP much cleaner IPConfigs> ... File and Printer Sharing for Microsoft Networks ... @target", substituting for @target: ...
    (microsoft.public.windowsxp.network_web)