[J3] [EXTERNAL] [BULK] Re: Question on dummy CLASS(*) pointer arguments
Clune, Thomas L. (GSFC-6101)
thomas.l.clune at nasa.gov
Wed Nov 29 18:37:39 UTC 2023
Precisely.
From: J3 <j3-bounces at mailman.j3-fortran.org> on behalf of j3 <j3 at mailman.j3-fortran.org>
Reply-To: j3 <j3 at mailman.j3-fortran.org>
Date: Wednesday, November 29, 2023 at 1:14 PM
To: j3 <j3 at mailman.j3-fortran.org>
Cc: Vipul Parekh <parekhvs at gmail.com>
Subject: [EXTERNAL] [BULK] Re: [J3] Question on dummy CLASS(*) pointer arguments
CAUTION: This email originated from outside of NASA. Please take care when clicking links or opening attachments. Use the "Report Message" button to report suspicious messages to the NASA SOC.
On Wed, Nov 29, 2023 at 1:02 PM Brad Richardson via J3 <j3 at mailman.j3-fortran.org<mailto:j3 at mailman.j3-fortran.org>> wrote:
.. assigning to the target could change the dynamic type. ..
How? `intent(in)` disallows the received argument `x` being in any pointer association context.
But then `x` as polymorphic can only be in any definition context within a `SELECT TYPE` guard that should prevent the dynamic type to be changed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20231129/a5c23dc2/attachment-0001.htm>
More information about the J3
mailing list