(j3.2006) Meaning of "reference a variable"
Bill Long
longb
Wed May 30 11:25:33 EDT 2007
Aleksandar Donev wrote:
>Hi,
>
>Question on terminology (following Mike's concerns). In this example:
>
>real, target :: x
>real :: p
>
>p=>x
>write(*,*) p
>
>Does the write statement "reference" the variable x?
>
Sure. See "16.5.2 Pointer association", first paragraph. (Page 483 in
07-007r1).
Cheers,
Bill
>Or does it just reference
>p? Certainly its execution requires the value of x. But our definition of
>"reference" talks about designators:
>
>"A data object reference is the appearance of the data object designator in a
>context requiring its value at that point during execution."
>
>The problem is the definite article in "the data object designator", as if
>there is only one designator that gets to the same value.
>
>Thanks,
>Aleks
>
>
>
--
Bill Long longb at cray.com
Fortran Technical Support & voice: 651-605-9024
Bioinformatics Software Development fax: 651-605-9142
Cray Inc., 1340 Mendota Heights Rd., Mendota Heights, MN, 55120
More information about the J3
mailing list