[Top][All Lists]
[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’.
- SCM_BOOL_T became #nil ?, nalaginrut, 2011/02/22
- Re: SCM_BOOL_T became #nil ?, Andy Wingo, 2011/02/22
- Re: SCM_BOOL_T became #nil ?, Hans Aberg, 2011/02/22
- Re: SCM_BOOL_T became #nil ?, nalaginrut, 2011/02/22
- Re: SCM_BOOL_T became #nil ?, Hans Aberg, 2011/02/22
- Re: SCM_BOOL_T became #nil ?, Ken Raeburn, 2011/02/22
- Re: SCM_BOOL_T became #nil -- et al. ?, Bruce Korb, 2011/02/23
- scm_listofnull,
Ludovic Courtès <=
- Re: SCM_BOOL_T became #nil -- et al. ?, Ken Raeburn, 2011/02/24
- Re: SCM_BOOL_T became #nil -- et al. ?, Bruce Korb, 2011/02/24
- Re: SCM_BOOL_T became #nil -- et al. ?, Andy Wingo, 2011/02/25
- Re: SCM_BOOL_T became #nil -- et al. ?, Andy Wingo, 2011/02/25
- Re: SCM_BOOL_T became #nil -- et al. ?, Hans Aberg, 2011/02/25
- Re: SCM_BOOL_T became #nil -- et al. ?, Andy Wingo, 2011/02/25
- Re: SCM_BOOL_T became #nil -- et al. ?, Hans Aberg, 2011/02/25
Re: SCM_BOOL_T became #nil ?, Mark H Weaver, 2011/02/22