home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!olivea!hal.com!decwrl!borland.com!pete
- From: pete@genghis.borland.com (Pete Becker)
- Newsgroups: comp.lang.c++
- Subject: Re: Turbo C++, function prototypes
- Message-ID: <1992Sep3.210922.18303@genghis.borland.com>
- Date: 3 Sep 92 21:09:22 GMT
- References: <1992Sep2.162728.11201@taumet.com> <1992Sep2.171625.13525@lclark.edu> <1992Sep3.171537.14287@taumet.com>
- Sender: news@borland.com (News Admin)
- Organization: Borland International
- Lines: 16
- Originator: pete@genghis.borland.com
-
- In article <1992Sep3.171537.14287@taumet.com> steve@taumet.com (Steve Clamage) writes:
- >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.
- >
-
- If you use the -A switch (enforce ANSI requirements) with our compiler,
- it will complain about void main() in a C program.
- -- Pete
-