guile-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Fix the R6RS exact-integer-sqrt and import into core guile


From: Mark H Weaver
Subject: Re: [PATCH] Fix the R6RS exact-integer-sqrt and import into core guile
Date: Thu, 07 Apr 2011 14:24:18 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

address@hidden (Ludovic Courtès) writes:
>> I'd like to push this to stable-2.0.  Any objections?
>
> Not from me!

Excellent! :)

> One remark:
>
>> --- a/libguile/numbers.h
>> +++ b/libguile/numbers.h
>> @@ -289,6 +289,7 @@ SCM_API SCM scm_log (SCM z);
>>  SCM_API SCM scm_log10 (SCM z);
>>  SCM_API SCM scm_exp (SCM z);
>>  SCM_API SCM scm_sqrt (SCM z);
>> +SCM_API void scm_exact_integer_sqrt (SCM k, SCM *s, SCM *r);
>
> Shouldn’t it be SCM_INTERNAL?  (If yes, then the doc should use @deffn
> instead of @deftypefn.)

Why do you think the C interface should be kept internal?  Most of the
core arithmetic procedures provide public C interfaces.  Why should
exact-integer-sqrt be treated differently?

    Mark



reply via email to

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