Next: , Previous: , Up: iklib records defs   [Index]


6.19.1.2 The destructor protocol

In a use of the syntax define-record-type, the definition clause:

(destructor-protocol ?expr)

allows the specification of an expression ?expr which must evaluate to the destructor protocol function; this function is used as explained below to construct a destructor function to be called:

iklib records final for further details.

Here is how the destructor function is built:

The destructor function must return zero values (for example using (values) in tail position).


Next: , Previous: , Up: iklib records defs   [Index]