Writing new destructors
Factor handbook > The language > Deterministic resource disposal

Prev:Using destructors
Next:Resource disposal anti-patterns


Superclass for disposable objects:
disposable


Parameterized constructor for disposable objects:
new-disposable ( class -- disposable )


Generic disposal word:
dispose* ( disposable -- )


Global set of disposable objects:
disposables