Re: questions: how to load a file "inlined" inside a let, and how to reference count objects



På Thu, 31 Jan 2008 11:03:58 +0100, skrev Pascal J. Bourguignon <pjb@xxxxxxxxxxxxxxxxx>:


You can use weak references, in the form of weak hash-tables or other
weak structures or pointers. That is, you don't do it yourself, you
let the garbage collect do it. Type: (apropos "WEAK") in your REPL.



Perhaps this is a good time to make him aware of the trivial-grabage library.
"trivial-garbage is a simple library that provides a portable API to finalizers, weak hash-tables and weak pointers."
http://www.cliki.net/trivial-garbage

--------------
John Thingstad
.