Compared to COMMON areas MODULS have very big advantages: They can be included in DLLs and they can hold dynamic allocatable arrays. Our new developments use only MODULS but no COMMON at all. We have a collection of global MODULS and several local MODULS for application programs.
When e.g. a global MODUL contains a variable iPosXYZ and a local MODULE includes a variable with the same name iPosXYZ and both moduls are used inside the same function we get no warning or error message but unexpected results. This is contrary to the use of COMMON areas from INCLUDE files.
Enhancement of the compiler will be appreciated.
Erwin