Open
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.