Re: Module compile order
- From: "James Giles" <jamesgiles@xxxxxxxxxxxxxxxx>
- Date: Sat, 31 May 2008 20:20:56 GMT
Thomas Robitaille wrote:
In a large project I have, two modules mutually depend on each other.
What is the best way to compile these?
Usually you need a third module. Take all the things in A that
B actually references and put them in a module A_prime. Then
both A and B can use A_prime and A can still use B. Or, do
it the other way around: all the things from B that A uses, put them
in B_prime, so both A and B can use B_prime, and B can still
use A.
Trying to be tricky with the USE topology (or soon with submodules)
will probably make your program less legible.
--
J. Giles
"I conclude that there are two ways of constructing a software
design: One way is to make it so simple that there are obviously
no deficiencies and the other way is to make it so complicated
that there are no obvious deficiencies." -- C. A. R. Hoare
.
- References:
- Module compile order
- From: Thomas Robitaille
- Module compile order
- Prev by Date: Re: Garbage in dead zone
- Previous by thread: Re: Module compile order
- Index(es):