weak references

PJP pete.poulos at gmail.com
Tue Aug 5 22:06:47 PDT 2008


Does the D garbage collector provide something similar to the "weak" references in Java?  Weak references don't prevent the object they refer to from being garbage collected.  If the object has been garbage collected, the weak reference will return null.


More information about the Digitalmars-d-learn mailing list