tango.core.WeakRef

Members

Aliases

WeakRef
alias WeakRef = WeakReference!(Object)

A generic WeakReference.

Classes

WeakReference
class WeakReference(T : Object)

Implements a Weak reference. The get() method returns null once the object pointed to has been collected.

Functions

main
void main()

Note this requires -g (with dmd) in order for the GC.collect call to operate as desired

make
WeakRef make()

Note this requires -g (with dmd) in order for the GC.collect call to operate as desired

Meta

License

BSD style: $(LICENSE)

Version

Jan 2010: Initial release

Authors

wm4, kris