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

  1. Path: sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!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: <23654@alice.att.com>
  6. Date: 11 Sep 92 13:50:56 GMT
  7. References: <1992Sep10.003726.27140@lucid.com> <1992Sep10.181836.9929@cadsun.corp.mot.com>
  8. Reply-To: ark@alice.UUCP ()
  9. Distribution: comp
  10. Organization: AT&T Bell Laboratories, Murray Hill NJ
  11. Lines: 10
  12.  
  13. In article <1992Sep10.181836.9929@cadsun.corp.mot.com> shang@corp.mot.com writes:
  14.  
  15. > Note that C g++ implements empty struct or class with size of zero. 
  16. > g++ also allows an array with zero number of member with size of zero.
  17.  
  18. Unfortunately, this violates the ISO C standard, which explicitly says
  19. that there are no zero-size objects.
  20. -- 
  21.                 --Andrew Koenig
  22.                   ark@europa.att.com
  23.