home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / cplus / 13485 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  974 b 

  1. Path: sparky!uunet!spool.mu.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!rpi!bu.edu!att!att!allegra!alice!ark
  2. From: ark@alice.att.com (Andrew Koenig)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: zero-length datatype
  5. Message-ID: <23650@alice.att.com>
  6. Date: 10 Sep 92 17:36:24 GMT
  7. References: <TMB.92Sep8141523@arolla.idiap.ch> <4947@holden.lulea.trab.se> <HAYDENS.92Sep9215705@bullwinkle.juliet.ll.mit.edu> <TMB.92Sep10120206@arolla.idiap.ch>
  8. Reply-To: ark@alice.UUCP ()
  9. Distribution: comp
  10. Organization: AT&T Bell Laboratories, Murray Hill NJ
  11. Lines: 12
  12.  
  13. There is one problem with `void' as a true datatype that I have not
  14. been able to solve: ISO C says that
  15.  
  16.     void f(void);
  17.  
  18. is a function with no arguments at all and C++ therefore follows suit.
  19. Making void into a true type would therefore require some compatibility
  20. warts; it is not clear exactly what would be necessary or what effect it
  21. would have on the rest of the language.
  22. -- 
  23.                 --Andrew Koenig
  24.                   ark@europa.att.com
  25.