Handbook
Glossary
with-callback ( alien quot -- )
Vocabulary
alien
Inputs
alien
an
alien
quot
a
quotation
Outputs
None
Word description
Calls the quotation with an alien value on the stack which is supposed to be a callback. Resources for the callback is guaranteed to be released afterwards.
See also
<callback>
,
free-callback
,
unregister-and-free-callback
Definition
USING:
continuations
kernel
;
IN:
alien
:
with-callback
( alien quot -- )
over
[
unregister-and-free-callback
]
curry
finally
;
inline