import selected module variables within that module's procedures
- From: beliavsky@xxxxxxx
- Date: 30 Oct 2006 14:24:40 -0800
I wish there were a way to import only a few module variables, derived
types, and procedures into a procedure of the module, for example
module foo_mod
integer :: i,j
contains
subroutine sub()
use foo_mod, only: i ! NOT a legal Fortran 95 statement
end subroutine sub
end module foo_mod
but one cannot write "use foo_mod" within module foo_mod. Is there a
way to get this effect in Fortran 95? Fortran 2003? Could the
"submodule" of TR 19767 accomplish this?
.
- Follow-Ups:
- Prev by Date: Re: READ-statement and a segmentation fault
- Next by Date: make i:j equivalent to [(k,k=i,j)]?
- Previous by thread: FORALL STATEMENT
- Next by thread: Re: import selected module variables within that module's procedures
- Index(es):
Relevant Pages
|
|