disposables
Factor handbook » The language » Deterministic resource disposal » Writing new destructors

Prev:dispose* ( disposable -- )


Vocabulary
destructors

Variable description
Global variable holding all disposable objects which have not been disposed of yet. The new-disposable word adds objects here, and the dispose method on disposables removes them. The Destructor tools vocabulary provides some words for working with this data.

See also
Destructor tools

Variable value
Current value in global namespace:
HS{ ~malloc-ptr~ ~malloc-ptr~ ~stdin~ ~fd~ ~output-port~...


Definition