Detect whether a weak reference to type T can be created.
A weak reference can be created for a class, interface, or delegate.
Warning:
delegate context must be a class instance.
I.e. creating a weak reference for a delegate created from a struct
member function will result in undefined behavior.
Weak reference will not work for closures unless enhancement $(DBUGZILLA 9601)
is implemented as now regular D objects aren't created on closures.
Detect whether a weak reference to type T can be created.
A weak reference can be created for a class, interface, or delegate.
Warning: delegate context must be a class instance. I.e. creating a weak reference for a delegate created from a struct member function will result in undefined behavior.
Weak reference will not work for closures unless enhancement $(DBUGZILLA 9601) is implemented as now regular D objects aren't created on closures.