[Top][All Lists]
[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: |
Ludovic Courtès |
Subject: |
Re: [PATCH] Fix the R6RS exact-integer-sqrt and import into core guile |
Date: |
Thu, 07 Apr 2011 23:24:48 +0200 |
User-agent: |
Gnus/5.110015 (No Gnus v0.15) Emacs/23.3 (gnu/linux) |
Hello!
Mark H Weaver <address@hidden> writes:
>>> +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?
Because:
1. I think we shouldn’t augment the C API unless strictly necessary,
because the idea is to write Scheme, not C, and because of the
maintenance cost.
Here I don’t think it buys us much to be able to do this from C.
2. This particular function is “unusual” in that it returns ‘void’ and
takes pointers to SCM.
WDYT?
Thanks,
Ludo’.
- [PATCH] Fix the R6RS exact-integer-sqrt and import into core guile, Mark H Weaver, 2011/04/06
- Re: [PATCH] Fix the R6RS exact-integer-sqrt and import into core guile, Ludovic Courtès, 2011/04/07
- Re: [PATCH] Fix the R6RS exact-integer-sqrt and import into core guile, Mark H Weaver, 2011/04/07
- Re: [PATCH] Fix the R6RS exact-integer-sqrt and import into core guile,
Ludovic Courtès <=
- Re: [PATCH] Fix the R6RS exact-integer-sqrt and import into core guile, Mark H Weaver, 2011/04/08
- Re: [PATCH] Fix the R6RS exact-integer-sqrt and import into core guile, Ludovic Courtès, 2011/04/09
- Re: [PATCH] Fix the R6RS exact-integer-sqrt and import into core guile, Mark H Weaver, 2011/04/09
- Re: [PATCH] Fix the R6RS exact-integer-sqrt and import into core guile, Ludovic Courtès, 2011/04/09
- Re: [PATCH] Fix the R6RS exact-integer-sqrt and import into core guile, Andy Wingo, 2011/04/11
- Re: [PATCH] Fix the R6RS exact-integer-sqrt and import into core guile, Detlev Zundel, 2011/04/11
- Re: [PATCH] Fix the R6RS exact-integer-sqrt and import into core guile, Noah Lavine, 2011/04/11
- Re: [PATCH] Fix the R6RS exact-integer-sqrt and import into core guile, Detlev Zundel, 2011/04/13
- Re: [PATCH] Fix the R6RS exact-integer-sqrt and import into core guile, Andy Wingo, 2011/04/13
- Re: [PATCH] Fix the R6RS exact-integer-sqrt and import into core guile, Mark H Weaver, 2011/04/13