dispose* ( disposable -- )
Factor handbook » The language » Deterministic resource disposal » Writing new destructors

Prev:new-disposable ( class -- disposable )
Next:disposables


Vocabulary
destructors

Inputs
disposablea disposable object


Outputs
None

Generic word contract
Releases operating system resources associated with a disposable object. Disposable objects include streams, memory mapped files, and so on.

Notes
This word should not be called directly. It can be implemented on objects with a disposed slot to ensure that the object is only disposed once.

Definition

GENERIC: dispose* ( disposable -- )


Methods