On Wed, Dec 12, 2012 at 9:36 PM, Hans Höglund hans@hanshoglund.se wrote:
I use 32-bit LispWorks on OS X 10.7 and it works well enough.
I do not know the behavior in other implementations.
Right, I re-checked the documentation and Lispworks indeed runs the finalizer before reclaiming the object, which is why your approach works there. It won't work in SBCL, for example. As such, we cannot support this feature in a portable fashion. :-/
I've created a new issue to document this: https://github.com/trivial-garbage/trivial-garbage/issues/8.
Thanks,