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