Soft/weak references?
BCS
ao at pathlink.com
Thu Jun 21 20:54:00 PDT 2007
Reply to Robert,
> 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!
>
BTW I haven't even tried to complile that code so...
More information about the Digitalmars-d-learn
mailing list