- #1
- 996
- 5
I have a bunch of programs that initialize values of variables of a user defined type, so I thought I'd initialize them all in a module and have each program 'use' the module. But, it seems the only way to initialize the variables in a module is to put the initializations in a subroutine within the module and then call the subroutine, say from the MAIN program. Initializing variables of intrinsic type in a module can be done w/o an imbedded subroutine.
Is my understanding correct, and if so, why the difference? Thanks for any comments.
Is my understanding correct, and if so, why the difference? Thanks for any comments.
Last edited: