[J3] Generic interface for IEEE_SELECTED_REAL_KIND?

Bill Long longb at cray.com
Thu Jan 3 10:32:23 EST 2019


> On Jan 2, 2019, at 6:31 PM, Malcolm Cohen via J3 <j3 at mailman.j3-fortran.org> wrote:
> 
>  
> >If the template proposal is accepted then this could be written in Fortran
>  
> Well, no. That wouldn’t handle passing absent optional arguments to IEEE_SELECTED_REAL_KIND. 


I would hope that absent optional arguments could still be declared assumed-kind or assumed-type in a template.  Other than as arguments to PRESENT or another procedure where the corresponding dummy is also optional, there is not much you can do with an optional dummy argument that is not present.  The template instantiation process should be able to handle this easily.   However, the specification for templates is not nearly completed yet. Clearly this requirement needs to be spelled out. 

Cheers,
Bill

Bill Long                                                                       longb at cray.com
Principal Engineer, Fortran Technical Support &   voice:  651-605-9024
Bioinformatics Software Development                      fax:  651-605-9143
Cray Inc./ 2131 Lindau Lane/  Suite 1000/  Bloomington, MN  55425




More information about the J3 mailing list