[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Configure GMP to use GC allocation functions, remove bignum
From: |
Andy Wingo |
Subject: |
Re: [PATCH] Configure GMP to use GC allocation functions, remove bignum finalizers |
Date: |
Sat, 03 Dec 2011 11:57:31 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
On Fri 02 Dec 2011 23:17, address@hidden (Ludovic Courtès) writes:
>> For that reason I defaulted scm_install_gmp_memory_functions to 1.
>
>>> Could you make it SCM_INTERNAL instead of SCM_API?
>>
>> Sure, but you don't want to allow users to set it?
>
> I’d say no, because that will fail gracelessly if it gets set or cleared
> in the middle of a run, won’t it?
To use it, you have to set it before scm_init_numbers() runs, as that is
the only place it is checked. So it should be OK. We could define a
more procedural interface, if that's useful, but I punted.
Andy
--
http://wingolog.org/