Handbook
Glossary
&dispose ( disposable -- disposable )
Factor handbook
»
The language
»
Deterministic resource disposal
»
Using destructors
Prev:
with-destructors ( quot -- )
Next:
|dispose ( disposable -- disposable )
Vocabulary
destructors
Inputs
disposable
a disposable object
Outputs
disposable
a disposable object
Word description
Marks the object for unconditional disposal at the end of the current
with-destructors
scope.
Definition
USING:
destructors.private
kernel
namespaces
sequences
;
IN:
destructors
:
&dispose
( disposable -- disposable )
dup
always-destructors
get
push
;
inline