Re: Error in opening the Library module file
- From: "Jugoslav Dujic" <jdujic@xxxxxxxxx>
- Date: Wed, 27 Sep 2006 16:35:10 +0200
Richard Maine wrote:
| Jugoslav Dujic <jdujic@xxxxxxxxx> wrote:
|
|| Right, "cyclic" or "circular". What you had is (as far as I can tell)
|| allowed by the standard but it will confuse most compilers -- they
|| expect the dependency hierarchy to be "tree-like" and cannot tell which
|| module should be compiled first (esp. when they're in the same source
|| file).
|
| No. Cyclic module dependency is not allowed by the standard. Not only is
| it a matter of which should be compiled first, but also it is possible
| (easy, in fact) for a cyclic dependency to have contradictions. A
| trivial example would be a two parameters m and n, with mdefined to
| equal n+1 and n defined to equal m+1.
Please see Mike's example in post #2 in this thread -- circular USEs
are in contained routines rather than in module declaration sections;
I am aware that cyclic dependency is prohibited in the latter form,
but I'm not sure about the example at hand.
--
Jugoslav
___________
www.xeffort.com
Please reply to the newsgroup.
You can find my real e-mail on my home page above.
.
- Follow-Ups:
- Re: Error in opening the Library module file
- From: Richard E Maine
- Re: Error in opening the Library module file
- References:
- Error in opening the Library module file
- From: Mike
- Re: Error in opening the Library module file
- From: Mike
- Re: Error in opening the Library module file
- From: dpb
- Re: Error in opening the Library module file
- From: Mike
- Re: Error in opening the Library module file
- From: Mike
- Re: Error in opening the Library module file
- From: Mike
- Re: Error in opening the Library module file
- From: Jugoslav Dujic
- Re: Error in opening the Library module file
- From: Richard Maine
- Error in opening the Library module file
- Prev by Date: Re: Strange Porting Problem CVF to IVF, requesting help and ideas.
- Next by Date: Re: factorial n! program
- Previous by thread: Re: Error in opening the Library module file
- Next by thread: Re: Error in opening the Library module file
- Index(es):
Relevant Pages
|