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.