hiding a pointer

Stewart Gordon smjg_1998 at yahoo.com
Tue Oct 24 14:55:00 PDT 2006


Thomas Kuehne wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Sometimes you might have to hide a pointer, so that the GC doesn't
> "see" it and might reclaim the pointer's destination if there are
> no other pointers into this area.
<snip>

And won't update it if it's moved by a copying GC.

The only infallible solution I can see is if D finally gets weak references.

Stewart.

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d- s:-@ C++@ a->--- UB@ P+ L E@ W++@ N+++ o K-@ w++@ O? M V? PS- 
PE- Y? PGP- t- 5? X? R b DI? D G e++++ h-- r-- !y
------END GEEK CODE BLOCK------

My e-mail is valid but not my primary mailbox.  Please keep replies on 
the 'group where everyone may benefit.



More information about the Digitalmars-d-learn mailing list