guile-user
[Top][All Lists]
Advanced

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

Re: typo in guile doc?


From: Neil Jerram
Subject: Re: typo in guile doc?
Date: Sun, 27 Dec 2009 12:52:17 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Thien-Thi Nguyen <address@hidden> writes:

> () Chengqi Song <address@hidden>
> () 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 via email to

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