(j3.2006) Chaining type-bound procedure references
Tom Clune
Thomas.L.Clune
Fri May 2 14:54:43 EDT 2014
On May 2, 2014, at 2:52 PM, Van Snyder <Van.Snyder at jpl.nasa.gov> wrote:
> On Fri, 2014-05-02 at 01:00 -0400, Rafik Zurob wrote:
>> val = x%foo()%bar()
>>
>> would require a temp pointer
>>
>> temp_ptr_dscr => x%foo()
>> val = temp_ptr_dscr%bar()
>
> I don't understand how that is inferior to a user-declared temp pointer.
My understanding is that Rafik's concern was the following.
If the user creates the temp, then it is on _them_ to decide if the temp is still valid for later references. If the compiler creates it, then the _compiler_ must ensure that no side-effects change the temp between uses.
- Tom
>
>
> _______________________________________________
> J3 mailing list
> J3 at mailman.j3-fortran.org
> http://mailman.j3-fortran.org/mailman/listinfo/j3
Thomas Clune, Ph. D. <Thomas.L.Clune at nasa.gov>
CISTO Code 606.0
NASA GSFC 301-286-4635
MS 610.8 B33-C128
Greenbelt, MD 20771
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.j3-fortran.org/pipermail/j3/attachments/20140502/79e9927f/attachment.html
More information about the J3
mailing list