088. How to rename an imported module entity#
topic: Modules
Note
This tip is a draft1.
An imported module entity can be renamed with the syntax
use mod, only: local_name => use_name
or
use mod, local_name => use_name
This is necessary when importing procedures with the same name, not in interfaces, from different modules.
An imported module entity can be renamed with the syntax
— FortranTip (@fortrantip) January 13, 2022
use mod, only: local_name => use_name
or
use mod, local_name => use_name
This is necessary when importing procedures with the same name, not in interfaces, from different
modules. pic.twitter.com/89mRx3jsWV
- 1
From the perspective of FortranTip Browser, “draft” means that it hasn’t been edited for formatting, hasn’t had corresponding Fortran programs added, the text content hasn’t been enhanced, etc. Draft texts are extracted from the corresponding Tweet using the Twitter API.