Re: writing a module file in gfortran 14

Liste des GroupesRevenir à cl fortran 
Sujet : Re: writing a module file in gfortran 14
De : sgk (at) *nospam* REMOVEtroutmask.apl.washington.edu (Steven G. Kargl)
Groupes : comp.lang.fortran
Date : 07. Dec 2024, 06:42:20
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vj0n7s$2t5a0$1@dont-email.me>
References : 1 2
User-Agent : Pan/0.145 (Duplicitous mercenary valetism; d7e168a git.gnome.org/pan2)
On Wed, 04 Dec 2024 20:11:34 +0000, Thomas Koenig wrote:

Lynn McGuire <lynnmcguire5@gmail.com> schrieb:
Is the "implicit none" in the proper place in the following code ?
 
No.
 

Technically, the answer is 'yes' to the question asked.

 
You want
 
      module aaa_modules
>
           implicit none
>
           INTERFACE
             SUBROUTINE ABCPAR(ISW,IRETST,IR,IC,PAR,IPHASE)
                 IMPLICIT NONE
 
...
 
because declarations in the outer module have no meaning on
interfaces.

This is the answer to the question you meant to ask.  An interface
construct introduces a new namespace and blocks host association.
As such, Fortran's implicit typing rules apply

--
steve


Date Sujet#  Auteur
4 Dec 24 * writing a module file in gfortran 1411Lynn McGuire
4 Dec 24 `* Re: writing a module file in gfortran 1410Thomas Koenig
4 Dec 24  +* Re: writing a module file in gfortran 148Lynn McGuire
5 Dec 24  i`* Re: writing a module file in gfortran 147Gary Scott
5 Dec 24  i +* Re: writing a module file in gfortran 145Lawrence D'Oliveiro
5 Dec 24  i i+- Re: writing a module file in gfortran 141Gary Scott
5 Dec 24  i i+- Re: writing a module file in gfortran 141Lynn McGuire
7 Dec 24  i i`* Re: writing a module file in gfortran 142Steven G. Kargl
7 Dec 24  i i `- Re: writing a module file in gfortran 141Lawrence D'Oliveiro
8 Dec 24  i `- Re: writing a module file in gfortran 141Lynn McGuire
7 Dec 24  `- Re: writing a module file in gfortran 141Steven G. Kargl

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal