Re: Error in opening the Library module file



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.

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.



Relevant Pages

  • Re: Error in opening the Library module file
    ... || allowed by the standard but it will confuse most compilers -- they ... | No. Cyclic module dependency is not allowed by the standard. ... I am aware that cyclic dependency is prohibited in the latter form, ...
    (comp.lang.fortran)
  • Re: Cant understand this! (Help required please)
    ... Yes and some online courses NETG does not seem to understand what ... > New to programming: ... I have heard of comeau don't they make compilers too? ... An argument I have used many times myself, I want to learn standard C++, ...
    (alt.comp.lang.learn.c-cpp)
  • Re: GCC
    ... The header names changed explicitly to ... The Standard says that the standard ... that did not put iostream into the std namespace. ... and compilers change along with them. ...
    (Debian-User)
  • Re: subroutine stack and C machine model
    ... Herb has found out that a+bis ... Peter: But the STANDARD says... ... Most compilers have left to right evaluation as it happens. ... evidence appear to be more than one piece of evidence. ...
    (comp.lang.c)
  • Re: man 3 switch
    ... As C is an ISO standard, I sincerely doubt there would be any ... syntax and behaviour of the keywords between C compilers on any Unix-like ... of arithmetic operators of equal precedence in the same statement (in ... The languages themselves normally aren't. ...
    (Fedora)