home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / std / cplus / 1752 < prev    next >
Encoding:
Text File  |  1992-12-11  |  1.3 KB  |  28 lines

  1. Newsgroups: comp.std.c++
  2. Path: sparky!uunet!microsoft!hexnut!jimad
  3. From: jimad@microsoft.com (Jim Adcock)
  4. Subject: Re: Zero-length structures and pointer comparisons
  5. Message-ID: <1992Dec11.230534.10499@microsoft.com>
  6. Date: 11 Dec 92 23:05:34 GMT
  7. Organization: Microsoft Corporation
  8. References: <1992Dec8.103218.27689@lth.se> <1992Dec8.173855.18153@meaddata.com> <1992Dec10.121935.19315@ucc.su.OZ.AU>
  9. Lines: 17
  10.  
  11. In article <1992Dec10.121935.19315@ucc.su.OZ.AU> maxtal@extro.ucc.su.OZ.AU (John MAX Skaller) writes:
  12. |    The answer to this particular question is YES, they must
  13. |compare equal according to the ARM. And I think this is a problem
  14. |for OS design for the 386, for example, where the memory management
  15. |kernel will just have to ignore the ARM.
  16.  
  17. No more nor less than any other virtual memory OS that allows
  18. multiply mapped pages.  Since there is no functionality in the
  19. language requiring such multiply mapped pages, you only get in
  20. this situation by invoking some system dependency, in which case
  21. you are making use of implementation dependencies.  If you will,
  22. a common C/C++ implementation defined extension to the language
  23. is to allow the use of OS calls in order to map various regions
  24. of memory to the same underlying page, allowing the same object
  25. to be accessed via differing addresses.  Implementation defined,
  26. no more nor less.
  27.  
  28.