A list of variable bindings.
A single form to be executed with bindings in effect.
A list of forms.
allocates memory for foreign objects specified in
(which may use those objects) and then executes
before deallocating the foreign objects. This is the same effect as with-dynamic-foreign-objects, but it also allows you to add cleanup forms
that are guaranteed to be executed (as in
There are two differences between using this and using with-dynamic-foreign-objects with a body is that is a single
are the cleanup-forms of the
, like this:
Secondly, if there is an error in any of the cleanups with-dynamic-foreign-objects will cause a memory leak, but this will not happen when using