Soft/weak references?

BCS ao at pathlink.com
Thu Jun 21 15:39:56 PDT 2007


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.




More information about the Digitalmars-d-learn mailing list