[Bug fortran/52846] [F2008] Support submodules - part 3/3
Mikael Morin
mikael.morin@sfr.fr
Thu Jul 23 15:42:00 GMT 2015
Hello Paul,
Le 23/07/2015 09:46, Paul Richard Thomas a écrit :
> Since all the private entities in a module have to be transmitted to
> their descendant submodules, whilst keeping them hidden from normal
> use statements, I have chosen to write the module file as usual and
> add a second part that contains the private entities. This latter is
> only read when processing submodule statements.
>
why not write them to the/a .smod file? It was its primary purpose,
wasn't it?
[Sorry, I followed the submodule stuff very remotely].
It's probably bad practice to put private entities in module files, at
least now that submodules are supported. Nevertheless with your change,
modifications made to private entities produce recompilation cascades,
even though the public interfaces are left unchanged.
Mikael
More information about the Fortran
mailing list