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.



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.