Two modules with the same name in one program

The situation that first comes to mind is when a programmer combines various smaller projects into one large project. There could well be modules in those various projects with the same name, particularly if they all do similar low-level things like define KIND values (KINDS_MOD) or I/O units (IO_UNITS_MOD) and things like that.

As stated in my previous post, I don’t really know a way to account for this. It seems like the easiest thing is to just rename the modules to avoid the conflicts, and in those cases where it is necessary, merge the functionality of, for example, the various KINDS_MOD into a single version.