unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* an add-finalizer! by any other name
@ 2012-03-15  9:50 Andy Wingo
  2012-03-15 18:39 ` Ian Price
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Wingo @ 2012-03-15  9:50 UTC (permalink / raw)
  To: guile-devel

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!

Andy
-- 
http://wingolog.org/



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: an add-finalizer! by any other name
  2012-03-15  9:50 an add-finalizer! by any other name Andy Wingo
@ 2012-03-15 18:39 ` Ian Price
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Price @ 2012-03-15 18:39 UTC (permalink / raw)
  To: Andy Wingo; +Cc: guile-devel

Andy Wingo <wingo@pobox.com> 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"



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-15 18:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-15  9:50 an add-finalizer! by any other name Andy Wingo
2012-03-15 18:39 ` Ian Price

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).