Definition of "conforming"

Christopher R Volpe volpe at camelback.crd.ge.com
Wed Apr 3 06:22:33 AEST 1991


Here's an interesting question on terminology. Section 1.7 states
that "A conforming program is one that is acceptable to a conforming
implementation." Now, does that mean that THERE MUST EXIST at least
one conforming implementation that accepts it, or that it is possible
that an implementation accept it and still be conforming? (I assume that
"accept" means "generate code without issuing any diagnostics", otherwise
any program could be a conforming program)

For example, suppose when given the following program

         #include <stdio.h>
         int main(void)
         { 
            printf("Hello world\n\n\n\n");
            return 0;
         }

every compiler in existance outputted a diagnostic:
"foo.c: Warning: Your fly is open"

Would this program be non-conforming because no compiler accepts it?
Or would it be conforming because it's *possible* for a conforming
implementation to accept it?

Just curious...

==================
Chris Volpe
G.E. Corporate R&D
volpecr at crd.ge.com



More information about the Comp.std.c mailing list