unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: Abhijeet More <abhijeet.more@gmail.com>
Cc: guile-user@gnu.org, Tibi Turbureanu <tiberiuturbureanu@gmail.com>
Subject: Re: Implementation of the promise smob
Date: Thu, 19 Aug 2010 21:43:24 -0700	[thread overview]
Message-ID: <m3zkwhsxlf.fsf@unquote.localdomain> (raw)
In-Reply-To: <AANLkTikfC_Bi-ATXJxoW6J7ycOPERxs4Nxa2X+qMKiTO@mail.gmail.com> (Abhijeet More's message of "Thu, 19 Aug 2010 22:10:20 -0400")

On Thu 19 Aug 2010 19:10, Abhijeet More <abhijeet.more@gmail.com> writes:

> Hi,
> I noticed that the implementation of the "promise" smob did not have
> any "mark" function defined.
> This smob does contain a couple of other SCM objects.
>
> Can someone explain how these objects are not cleared up by the gc
> (since nobody marks them as live)?

If you do not provide a mark function, the GC will treat all words in an
object as pointers, and mark them.

The problem, I think, is not that the promise refers to its value: it is
that something is mistakenly referring to the promise (and thence to the
value).

Andy
-- 
http://wingolog.org/



      reply	other threads:[~2010-08-20  4:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-20  2:10 Implementation of the promise smob Abhijeet More
2010-08-20  4:43 ` Andy Wingo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3zkwhsxlf.fsf@unquote.localdomain \
    --to=wingo@pobox.com \
    --cc=abhijeet.more@gmail.com \
    --cc=guile-user@gnu.org \
    --cc=tiberiuturbureanu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).