unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Neil Jerram <neil@ossau.uklinux.net>
To: Chengqi Song <songcq@gmail.com>
Cc: guile-user <guile-user@gnu.org>, Thien-Thi Nguyen <ttn@gnuvola.org>
Subject: Re: typo in guile doc?
Date: Sun, 27 Dec 2009 12:52:17 +0000	[thread overview]
Message-ID: <87ljgo1svy.fsf@ossau.uklinux.net> (raw)
In-Reply-To: <87skawhd7p.fsf@ambire.localdomain> (Thien-Thi Nguyen's message of "Sun, 27 Dec 2009 12:24:10 +0100")

Thien-Thi Nguyen <ttn@gnuvola.org> writes:

> () Chengqi Song <songcq@gmail.com>
> () Sun, 27 Dec 2009 07:22:50 +0800
>
>    "By calling this function, the garbage collector learns
>    about all references that your SMOB has to other SCM values."
>
>    what is "has to other SCM values"? is it a typo?
>
> Perhaps that object contains (points to, references) other
> sub-objects.  The SMOB's mark function must call (back to) Guile's
> mark function for those sub-objects.  In this way the collector learns.
> If the mark function fails to do that, the collector remains ignorant.

We could rewrite this as:

>    "By calling this function, the garbage collector learns
>    about the other SCM values (if any) that your SMOB refers to."

Would that be clearer?

Also please note that this is different in Guile 1.9.x.  (In summary,
the mark function isn't needed any more.)  If you're writing something
new, you may want to consider targeting Guile 1.9.x instead of 1.8.x.

Regards,
        Neil




      reply	other threads:[~2009-12-27 12:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-26 23:22 typo in guile doc? Chengqi Song
2009-12-27 11:24 ` Thien-Thi Nguyen
2009-12-27 12:52   ` Neil Jerram [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=87ljgo1svy.fsf@ossau.uklinux.net \
    --to=neil@ossau.uklinux.net \
    --cc=guile-user@gnu.org \
    --cc=songcq@gmail.com \
    --cc=ttn@gnuvola.org \
    /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).