Chris Baker <[EMAIL PROTECTED]> writes:
[...]
> > On a related note, why can't the FUNCTION argument to EXT:FINALIZE
> > take one argument that is the object (or a reference to it) being
> > finalized? Is this impossible? It would make it much easier for the
> > programmer (or for me at least)...
>
> The thing that you're finalizing has already been deallocated by the
> time your function is called (that's how the function that calls it
> knows to call it) so it can't be passed in.
Of course, you could always define your own finalize which does what
you ask:
(defun my-finalize (obj callback)
(finalize (list obj)
#'(lambda ()
(funcall callback obj))))
>
> HTH,
>
> cbb
>
> >
> > 'james
> >
> > --
> > James A. Crippen <[EMAIL PROTECTED]> ,-./-. Anchorage, Alaska,
> > Lambda Unlimited: Recursion 'R' Us | |/ | USA, 61.20939N, -149.767W
> > Y = \f.(\x.f(xx)) (\x.f(xx)) | |\ | Earth, Sol System,
> > Y(F) = F(Y(F)) \_,-_/ Milky Way.
> >
>
> --
> 8:15pm up 88 days, 23:03, 1 user, load average: 0.00, 0.05, 0.04
>
--
10:00pm up 89 days, 48 min, 1 user, load average: 0.57, 0.19, 0.06