dstruct.weak_reference

This module implements weak references.

Members

Classes

WeakReference
class WeakReference(T)

This class implements a weak reference wrapper for class T.

Functions

weak
WeakReference!T weak(T object)

This is a convenience function for creating a new weak reference wrapper for a given object.

Meta

Authors

Alex Rønne Petersen, w0rp

Credit and thanks goes to Alex Rønne Petersen for implementing another weak reference type. This type is pretty much a fork of his code, some of it still surviving.