home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12480 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  1.2 KB

  1. Path: sparky!uunet!wupost!waikato.ac.nz!comp.vuw.ac.nz!actrix!Bruce.Hoult
  2. Newsgroups: comp.lang.c++
  3. Subject: Re: Garbage Collection for C++
  4. Message-ID: <1992Aug18.045533.7193@actrix.gen.nz>
  5. From: Bruce.Hoult@bbs.actrix.gen.nz
  6. Date: Tue, 18 Aug 1992 04:55:33 GMT
  7. Sender: Bruce.Hoult@actrix.gen.nz (Bruce Hoult)
  8. References: <DAVEG.92Aug14194411@synaptx.synaptics.com> <2009@appli.se> <TMB.92Aug17204854@arolla.idiap.ch>
  9. Organization: Actrix Information Exchange
  10. Lines: 15
  11.  
  12. In article <TMB.92Aug17204854@arolla.idiap.ch> tmb@idiap.ch writes:
  13. > Incidentally, there is a widely used, simple, efficient, more general,
  14. > and completely portable technique for getting the same kinds of
  15. > storage savings as with the XOR trick.
  16.  
  17. Well you can trivially subtract the pointers instead of XORing them.
  18. That would be more portable in practise, although I don't think ANSI C
  19. guarentees that you can subtract arbitrary pointers. but only ones to
  20. elements of the same array or struct.
  21. -- 
  22. Bruce.Hoult@bbs.actrix.gen.nz   Twisted pair: +64 4 477 2116
  23. BIX: brucehoult                 Last Resort:  PO Box 4145 Wellington, NZ
  24. "Cray's producing a 500 MIPS personal computer with 256MB RAM and 8 GB
  25. hard disk that fits in your pocket!"   "Great!  Is it PC compatible?"
  26.