home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / std / cplus / 1930 < prev    next >
Encoding:
Text File  |  1992-12-29  |  1.8 KB  |  44 lines

  1. Newsgroups: comp.std.c++
  2. Path: sparky!uunet!munnari.oz.au!metro!extro.ucc.su.OZ.AU!maxtal
  3. From: maxtal@extro.ucc.su.OZ.AU (John MAX Skaller)
  4. Subject: Re: Pointer comparisons
  5. Message-ID: <1992Dec28.043719.29077@ucc.su.OZ.AU>
  6. Sender: news@ucc.su.OZ.AU
  7. Nntp-Posting-Host: extro.ucc.su.oz.au
  8. Organization: MAXTAL P/L C/- University Computing Centre, Sydney
  9. References: <1992Dec19.001851.22116@microsoft.com> <1992Dec22.174327.8903@lpi.liant.com>
  10. Date: Mon, 28 Dec 1992 04:37:19 GMT
  11. Lines: 31
  12.  
  13. In article <1992Dec22.174327.8903@lpi.liant.com> pkt@lpi.liant.com (Scott Turner) writes:
  14. >Moreover, such padding is in the C++ tradition.  The ARM requires padding 
  15. >in two places, where the principal intent is to support
  16. >
  17. >            p and q point to different objects implies p!=q
  18. >
  19. >    1. 5.3.2 "The size of any class object is larger than zero."
  20. >
  21. >    2. 5.3.3 "This implies that an operator new() can be called with an
  22. >       argument zero.  In this case, a pointer to an object is returned.
  23. >       Repeated such calls return pointers to different objects."
  24. >       [An example follows to demonstrate that the intent is that
  25. >       distinguishable pointers values be returned.]
  26.  
  27. IF this intent is to be fully supported, additional words would be
  28. required to ensure base subobjects and included member objects
  29. were also padded?
  30.  
  31. IF these words are not added, then the intent is not supported
  32. fully, and the clauses above might as well be dropped?
  33.  
  34. I.E. I am asking if there is any point retaining the status
  35. quo, or any other position where full pointer identity
  36. is not supported yet padding is required.
  37.  
  38.  
  39. -- 
  40. ;----------------------------------------------------------------------
  41.         JOHN (MAX) SKALLER,         maxtal@extro.ucc.su.oz.au
  42.     Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
  43. ;--------------- SCIENTIFIC AND ENGINEERING SOFTWARE ------------------
  44.