Re: Finalization function for GC per object in LispWorks.
"Tim Bradshaw (as tfb at cley dot com)" <[email protected]>
| Newsgroups | gmane.lisp.lispworks.general |
|---|---|
| Message-ID | <[email protected]> |
That's a much better solution! > On 7 Nov 2025, at 20:24, Yuri Davidovsky <[email protected]> wrote: > > > >> On 7 Nov 2025, at 21:11, Martin Simmons <[email protected]> wrote: >> >> (defvar *finalizer-table* >> (make-hash-table >> :test #'eq >> :weak-kind :key >> :free-function 'callfun)) > > This is actually very cool. Now it will be easy to destroy clos objects if they need that by adding them to the table during initialisation. I find in Lisp it is particularly easy to lose an object when playing with things in repl. What was the original intention behind adding this :free-function parameter? > > _______________________________________________ > Lisp Hug - the mailing list for LispWorks users > [email protected] > http://www.lispworks.com/support/lisp-hug.html _______________________________________________ Lisp Hug - the mailing list for LispWorks users [email protected] http://www.lispworks.com/support/lisp-hug.html