home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / cplus / 13272 < prev    next >
Encoding:
Text File  |  1992-09-03  |  1.1 KB  |  29 lines

  1. Path: sparky!uunet!sun-barr!olivea!hal.com!decwrl!borland.com!pete
  2. From: pete@genghis.borland.com (Pete Becker)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Turbo C++, function prototypes
  5. Message-ID: <1992Sep3.210922.18303@genghis.borland.com>
  6. Date: 3 Sep 92 21:09:22 GMT
  7. References: <1992Sep2.162728.11201@taumet.com> <1992Sep2.171625.13525@lclark.edu> <1992Sep3.171537.14287@taumet.com>
  8. Sender: news@borland.com (News Admin)
  9. Organization: Borland International
  10. Lines: 16
  11. Originator: pete@genghis.borland.com
  12.  
  13. In article <1992Sep3.171537.14287@taumet.com> steve@taumet.com (Steve Clamage) writes:
  14. >harrison@lclark.edu (Mark Harrison) writes:
  15. >
  16. >>In article <1992Sep2.162728.11201@taumet.com> steve@taumet.com (Steve Clamage) writes:
  17. >>>If you write, for example,
  18. >>>    void main(){ }
  19. >>>The compiler is obligated to diagnose an error in C and C++.
  20. >
  21. >>But still, I have Turbo C/C++ 3.0, and my compiler is NOT obligated to
  22. >>diagnose an error.  I know because I've used 'void main()', and everything
  23. >>compiles & runs just fine.
  24. >
  25.  
  26.     If you use the -A switch (enforce ANSI requirements) with our compiler,
  27. it will complain about void main() in a C program.
  28.     -- Pete
  29.