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,878 of 5,127   
   Lynn McGuire to Gary Scott   
   Re: writing a module file in gfortran 14   
   07 Dec 24 17:04:58   
   
   From: lynnmcguire5@gmail.com   
      
   On 12/4/2024 6:40 PM, Gary Scott wrote:   
   > On 12/4/2024 3:20 PM, Lynn McGuire wrote:   
   >> On 12/4/2024 2:11 PM, Thomas Koenig wrote:   
   >>> Lynn McGuire  schrieb:   
   >>>> Is the "implicit none" in the proper place in the following code ?   
   >>>   
   >>> No.   
   >>>   
   >>> [snip]   
   >>>   
   >>> 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.   
   >>>   
   >>> A rather frequent source of confusion, I'm afraid (I got bitten   
   >>> by this myself in the past).   
   >>   
   >> Woof !  I was afraid of that.  The Fortran Module definition seems to   
   >> be very fragile.   
   >>   
   >> That is going to be painful to add to my module file.   
   >>   
   >> Lynn   
   >>   
   > The interface is its own entity.  I think the design is correct in   
   > requiring the implicit none to be repeated.  While I might have   
   > preferred a "file scope" design more, as long as there is consistency in   
   > the design, I'm ok with it.   
   >   
   > Sorry for the direct email :( intended to post here   
      
   No worries !  I only check the gmail email every week or two.   
      
   Thanks,   
   Lynn   
      
   --- 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