-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
My point here was to use the reference counts to track dangling pointers. Once the number of dangling pointers reaches zero, there aren't any anymore; meanwhile, checking that count before accessing the memory location would provide instant and very efficient confirmation on whether or not the pointer is still valid.
On Mar 18, 2005, at 11:55 AM, Frank Heckenbach wrote:
Again, "somewhat complex" is a "slight" understatement. It would affect all usages of pointers, including in external libraries, which for practical purposes means it's impossible.
Anyway, what you describe, is a form of garbage collection. This is a branch of science on its own. Many algorithms exist, each with their own advantages and disadvantages.
- ----------------------------------------------------------- Frank D. Engel, Jr. fde101@fjrhome.net
$ ln -s /usr/share/kjvbible /usr/manual $ true | cat /usr/manual | grep "John 3:16" John 3:16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. $
___________________________________________________________ $0 Web Hosting with up to 120MB web space, 1000 MB Transfer 10 Personalized POP and Web E-mail Accounts, and much more. Signup at www.doteasy.com