Soft/weak references?

Robert Fraser fraserofthenight at gmail.com
Thu Jun 21 20:00:31 PDT 2007


BCS Wrote:

> Reply to Robert,
> 
> > BCS Wrote:
> > 
> >> T** ptr;
> >> 
> > But this means there's still a reference to it.
> > 
> 
> It's a total hack. You get a reference to a chunk of memory that contains 
> a reference to the data, but you lie to the GC and tell it that the chunk 
> of memory doesn't contain any references so it won't notice the refernce.
> 
> 

All right, I'll give it a shot. Thanks!



More information about the Digitalmars-d-learn mailing list