home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!taumet!steve
- From: steve@taumet.com (Steve Clamage)
- Subject: Re: Turbo C++, function prototypes
- Message-ID: <1992Sep3.171537.14287@taumet.com>
- Organization: TauMetric Corporation
- References: <2262@bigfoot.first.gmd.de> <1992Sep1.160816.10309@lclark.edu> <1992Sep2.162728.11201@taumet.com> <1992Sep2.171625.13525@lclark.edu>
- Date: Thu, 3 Sep 1992 17:15:37 GMT
- Lines: 21
-
- harrison@lclark.edu (Mark Harrison) writes:
-
- >In article <1992Sep2.162728.11201@taumet.com> steve@taumet.com (Steve Clamage) writes:
- >>If you write, for example,
- >> void main(){ }
- >>The compiler is obligated to diagnose an error in C and C++.
-
- >But still, I have Turbo C/C++ 3.0, and my compiler is NOT obligated to
- >diagnose an error. I know because I've used 'void main()', and everything
- >compiles & runs just fine.
-
- "Obligated" does not mean "happens". The ANSI and ISO C standards
- require a diagnostic, and the ARM says it is not legal. Any
- compliler claiming conformance to standards is "obligated" to report
- violations of those standards. If a compiler does not claim
- conformance, it can do whatever it likes. Probably I should have
- said "obligated by the Standard".
- --
-
- Steve Clamage, TauMetric Corp, steve@taumet.com
- Vice Chair, ANSI C++ Committee, X3J16
-