Next Prev Up Top Contents Index

add-special-free-action

Function
Summary

Adds a function to perform a special action during garbage collection.

Package

hcl

Signature

add-special-free-action function => function-list

Arguments

function

The function to be performed.

Values

function-list

A list of the functions currently called to perform special actions, including the one just added.

Description

When some objects are garbage collected, you may require a "special action" to be performed as well. add-special-free-action adds a function to perform the special action. Note that the function is applied to all objects flagged for special-free-action, so the function should check for the object's type, so that it only affects relevant objects.

The functions flag-special-free-action and flag-not-special-free-action flag and unflag objects for action.

Example

(add-special-free-action 'free-my-app)

See also
remove-special-free-action
flag-special-free-action
flag-not-special-free-action

LispWorks Reference Manual - 25 Jul 2003

Next Prev Up Top Contents Index