Re: Finalization function for GC per object in LispWorks.

"Tim Bradshaw (as tfb at tfeb dot org)" <[email protected]>
Newsgroups gmane.lisp.lispworks.general
Message-ID <[email protected]>
On 7 Nov 2025, at 18:10, Yuri Davidovsky (as work at disclosure dot ie) <[email protected]> wrote:
> 
> Supposedly one does not need it in Lisp since stuff gets garbage collected and destroyed automatically, however indeed I found myself in situations where I needed to do something to an object when disposing of it (like closing a socket file descriptor, or something) because the GC likely won’t be able to.

That's exactly the typical purpose: have a fallback such that the GC can indeed close filehandles for you, if you forget, or free up some other resource.





_______________________________________________
Lisp Hug - the mailing list for LispWorks users
[email protected]
http://www.lispworks.com/support/lisp-hug.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.