home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / std / cplus / 1759 < prev    next >
Encoding:
Text File  |  1992-12-12  |  1.4 KB  |  35 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: Zero-length structures and pointer comparisons
  5. Message-ID: <1992Dec12.154918.2220@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: <1992Dec8.103218.27689@lth.se> <1992Dec8.173855.18153@meaddata.com> <1992Dec9.075125.22405@lth.se>
  10. Date: Sat, 12 Dec 1992 15:49:18 GMT
  11. Lines: 22
  12.  
  13. In article <1992Dec9.075125.22405@lth.se> dag@bellman.control.lth.se (Dag Bruck) writes:
  14. >    p != q   <=>   p < q   |   p > q
  15. >
  16. >for all pointers.  I'm not asking for a particular ordering, just an
  17. >implementation defined behaviour that meets the equivalence above.
  18. >
  19.     Since existing 8086 implementations do not satisfy the above
  20. condition, yet are conforming programs, would you accept Fergus
  21. Henderson's suggestion:
  22.  
  23.     p != q <=>  ptrcmp(p,q)<0 || ptrcmp(p,q)>0
  24.  
  25. which cannot break existing implementations but provides a  total
  26. order by way of a library function? If so, can we put this to
  27. the library WG?
  28.  
  29.  
  30. -- 
  31. ;----------------------------------------------------------------------
  32.         JOHN (MAX) SKALLER,         maxtal@extro.ucc.su.oz.au
  33.     Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
  34. ;--------------- SCIENTIFIC AND ENGINEERING SOFTWARE ------------------
  35.