[Bug fortran/52846] [F2008] Support submodules - part 3/3

Mikael Morin mikael.morin@sfr.fr
Mon Aug 3 10:45:00 GMT 2015


Le 29/07/2015 17:08, Paul Richard Thomas a écrit :
> Dear All,
>
> On 24 July 2015 at 10:08, Damian Rouson <damian@sourceryinstitute.org> wrote:
>> I love this idea and had similar thoughts as well.
>>
>> :D
>>
>> Sent from my iPhone
>>
>>> On Jul 24, 2015, at 1:06 AM, Paul Richard Thomas <paul.richard.thomas@gmail.com> wrote:
>>>
>>> Dear Mikael,
>>>
>>> It had crossed my mind also that a .mod and a .smod file could be
>>> written. Normally, the .smod files are produced by the submodules
>>> themselves, so that their descendants can pick up the symbols that
>>> they generate. There is no reason at all why this could not be
>>> implemented; early on in the development I did just this, although I
>>> think that it would now be easier to modify this patch.
>>>
>>> One huge advantage of proceeding in this way is that any resulting
>>> library can be distributed with the .mod file alone so that the
>>> private entities are never exposed. The penalty is that a second file
>>> is output.
>>>
>>> With best regards
>>>
>>> Paul
>>>
>
> Please find attached the implementation of this suggestion.
>
> Bootstraps and regtests on FC21/x86_64 - OK for trunk or is the
> original preferred?
>
There hasn't been a lot of voices about this among the other active and 
less active team members.
I prefer this "private members to separate smod" variant.
It's OK for trunk as far as I'm concerned.
Thanks.

Mikael

PS: Regarding redundant initializations: rather have too many than too 
few. ;-)



More information about the Fortran mailing list