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

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