Soft/weak references?
Robert Fraser
fraserofthenight at gmail.com
Thu Jun 21 10:49:09 PDT 2007
Hi all,
In Java, there's the concept of a "soft" reference to garbage-collectable data. Basically, a soft reference is a refrence to data that can be collected once there are no more strong references to it. It's useful for implementing, say, caches bounded by actual usage and memory availability, rather than some arbitrary limit.
Out of curiosity, is there any way to emulate this with the D GC?
Thanks,
Fraser
More information about the Digitalmars-d-learn
mailing list