-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
Clause 14Standard Clause 14: Program unitsStandard Clause 14: Program unitsFortran 202yProposals targeting the standard after F2023Proposals targeting the standard after F2023under considerationHas been submitted to the committeeHas been submitted to the committee
Description
So you can require module data to be referenced like module.var:
use, namespace :: utils
...
call utils%savetxt()
One issue with just use utils
is that it still pollutes your local namespace with savetxt
, so that's the reason for use, namespace :: utils
.
Other alternatives for syntax: use utils, only
(or perhaps use utils, only:
). Another alternative is use namespace utils
(suggested by Milan Curcic). Or perhaps use, namespace :: utils
, to by compatible with the existing syntax like use, intrinsic :: iso_fortran_env
.
Initially proposed by Michael Zingale and further discussed at Twitter.
septcolor, milancurcic, aradi, AndrewGaspar, darmar-lt and 32 more
Metadata
Metadata
Assignees
Labels
Clause 14Standard Clause 14: Program unitsStandard Clause 14: Program unitsFortran 202yProposals targeting the standard after F2023Proposals targeting the standard after F2023under considerationHas been submitted to the committeeHas been submitted to the committee