guile-devel
[Top][All Lists]
Advanced

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

scm_listofnull


From: Ludovic Courtès
Subject: scm_listofnull
Date: Thu, 24 Feb 2011 00:24:34 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux)

Hi,

Bruce Korb <address@hidden> writes:

>>> > By replacing "scm_listofnull" with "ag_scm_listofnull" and initializing 
>>> > it:
>>> >    SCM ag_scm_listofnull =  scm_list_1 (SCM_EOL);
>> In Guile < 1.9.3, you have to scm_gc_protect_object this value
>> (info "(guile) Garbage Collection Functions").
>
> and it sounds like scm_gc_protect_object(ag_scm_listofnull) won't
> work in 2.0.

It will.

> Would you-all please put scm_listofnull back?

I’d rather avoid it, since it’s so trivially worked around, and it was
never documented.

So, just use code like below, unconditionally:

  SCM ag_listofnulls;

  ...

    ag_listofnulls = scm_gc_protect_object (scm_list_1 (SCM_EOL));

It will work for 1.6 to 2.0, at least.

Thanks,
Ludo’.




reply via email to

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