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