Deutsch   English   Français   Italiano  
<vj0n7s$2t5a0$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: "Steven G. Kargl" <sgk@REMOVEtroutmask.apl.washington.edu>
Newsgroups: comp.lang.fortran
Subject: Re: writing a module file in gfortran 14
Date: Sat, 7 Dec 2024 05:42:20 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <vj0n7s$2t5a0$1@dont-email.me>
References: <vio2n4$d19a$1@dont-email.me> <viqd1m$12u2e$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 07 Dec 2024 06:42:20 +0100 (CET)
Injection-Info: dont-email.me; posting-host="392ff5fb24fcdde57378421525b4cde3";
	logging-data="3052864"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19xIndNl7CO+SwJomCVgSP0"
User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a
 git.gnome.org/pan2)
Cancel-Lock: sha1:ncYMhUMpuZyUjYgl1LsXEPTshWk=
Bytes: 1769

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