guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: an add-finalizer! by any other name


From: Ian Price
Subject: Re: an add-finalizer! by any other name
Date: Thu, 15 Mar 2012 18:39:30 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

Andy Wingo <address@hidden> writes:

> Hello,
>
> I had a realization yesterday, that our documentation misses the point
> of guardians.  Guardians exist to allow finalization of resources
> without introducing concurrency.  However if you pump a guardian from
> the after-gc-hook, as recommended by "GC Hooks" in the manual, a
> guardian is simply a finalizer, implemented in a roundabout way.
>
> Food for thought!
I could have told you that. I already implement an add-finalizer! in
roundabout way using guardians  :P

-- 
Ian Price

"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]