Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there any way for module dependant compilation!!!!!!!

Status
Not open for further replies.

ya0037

Programmer
Oct 7, 2010
30
DE
Hello to all,

This question has been asked for several times in several ways.
So please excuse me.

I want to be sure, Is there any way to compile modules that are dependent to each other??????????

Module 1
Use 2
End Module 1

Module 2
Use 1
End Module 2

Is there any flag or something like --nodeps in rpm or any thing that can be used with fortran source code to cmpile???????????

Best Regards,
 
No ! You cannot ! This is forbidden by the FORTRAN language !

The normal way to overcome that is to create a third module containing the parts of A and B involved in the recursion. Then the module A and the module B will simply use the module C.

This restriction is very useful : it avoids to create "spaghetti" codes, without clear organization, every thing depending of anything, directly or indirectly..

Look into JAVA codes where this rule is not applied because that language does not require it. From my point of view, this is even the main drawback of JAVA ! And I speak by experience...



François Jacq
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top