Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lynn McGuire Newsgroups: comp.lang.fortran Subject: Re: writing a module file in gfortran 14 Date: Sat, 7 Dec 2024 17:04:58 -0600 Organization: A noiseless patient Spider Lines: 47 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sun, 08 Dec 2024 00:04:59 +0100 (CET) Injection-Info: dont-email.me; posting-host="0b610134f78b734e5fbfccb82182f9c1"; logging-data="3554426"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18euhttzOtbsrXo261LjUxE5b2y+gkRRRo=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:WmBiPfQpvaEitYrZX6/aI+sH6g8= In-Reply-To: Content-Language: en-US Bytes: 2451 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