finally ( try cleanup-always -- )


Vocabulary
continuations

Inputs
trya quotation with stack effect ( ..a -- ..a )
cleanup-alwaysa quotation with stack effect ( ..a -- ..b )


Outputs
None

Word description
Same as cleanup, but with empty cleanup-error quotation. Useful when some cleanup code needs to be run after the try quotation whether an error was thrown or not, but when nothing specific needs to be done about any errors.

See also
cleanup, recover

Definition

: finally ( try cleanup-always -- ) [ ] cleanup ; inline