home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.fortran      Putting John Backus on a giant pedestal      5,127 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 4,875 of 5,127   
   Steven G. Kargl to Thomas Koenig   
   Re: writing a module file in gfortran 14   
   07 Dec 24 05:42:20   
   
   From: sgk@REMOVEtroutmask.apl.washington.edu   
      
   On Wed, 04 Dec 2024 20:11:34 +0000, Thomas Koenig wrote:   
      
   > Lynn McGuire  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   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca