[J3] C_PTR not allowed in SEQUENCE types?

Bill Long longb at cray.com
Thu Mar 11 14:28:31 UTC 2021



> On Mar 11, 2021, at 8:09 AM, Clune, Thomas L. (GSFC-6101) via J3 <j3 at mailman.j3-fortran.org> wrote:
> 
> Is there a fundamental reason that C_PTR cannot be a SEQUENCE type?

There are pretty severe restrictions on the types of components that can appear in a SEQUENCE type.   It would seem unreasonable to impose those restrictions on the (private) components of C_PTR.   In practice, there is only one component in C_PTR, and it is an unsigned 64-bit address.  The limits on SEQUENCE types do not accommodate that sort of component. 


On a related issue, I'm not really sure why SEQUENCE is not already in the list of Obsolescent features. 

Cheers,
Bill

>  
> I won’t admit to the terrible kludge that I’m attempting that led me to face this issue.   But he kludge aside, this seems to me at first glance to be a very reasonable and minor extension.

Bill Long                                                                       longb at hpe.com
Engineer/Master , Fortran Technical Support &   voice:  651-605-9024
Bioinformatics Software Development                      fax:  651-605-9143
Hewlett Packard Enterprise/ 2131 Lindau Lane/  Suite 1000/  Bloomington, MN  55425






More information about the J3 mailing list