>> What about emulating `scm_is_exact_integer', either in Scheme or in
>> C++? This should make transition to Guile-2 simple.
>
> You mean, complex.
Hmm. I was thinking along the gnulib mechanism which provides
drop-ins for many system functions.
> Get it wrong, and our private version is ge
Dan Eble writes:
> On Jul 4, 2018, at 07:29, David Kastrup wrote:
>>
>> Having our own ly_is_integer variant map to the Guile-2 version
>> conditionally is simple, and when we do it wrong, there is an obvious
>> missing symbol at link time. Or stuff works without complaint.
>
> That’s fine, bu
Dan Eble writes:
> On Jul 4, 2018, at 07:29, David Kastrup wrote:
>>
>> Having our own ly_is_integer variant map to the Guile-2 version
>> conditionally is simple, and when we do it wrong, there is an obvious
>> missing symbol at link time. Or stuff works without complaint.
>
> That’s fine, bu
On Jul 4, 2018, at 07:29, David Kastrup wrote:
>
> Having our own ly_is_integer variant map to the Guile-2 version
> conditionally is simple, and when we do it wrong, there is an obvious
> missing symbol at link time. Or stuff works without complaint.
That’s fine, but if it’s going to be a prox
David Kastrup writes:
> Werner LEMBERG writes:
>
>>> We probably need some ly_is_integer instead that also checks for
>>> scm_exact_p or so? Guile-2.0 has scm_is_exact_integer but Guile-1
>>> apparently not.
>>
>> What about emulating `scm_is_exact_integer', either in Scheme or in
>> C++? This
Werner LEMBERG writes:
>> We probably need some ly_is_integer instead that also checks for
>> scm_exact_p or so? Guile-2.0 has scm_is_exact_integer but Guile-1
>> apparently not.
>
> What about emulating `scm_is_exact_integer', either in Scheme or in
> C++? This should make transition to Guile-
> We probably need some ly_is_integer instead that also checks for
> scm_exact_p or so? Guile-2.0 has scm_is_exact_integer but Guile-1
> apparently not.
What about emulating `scm_is_exact_integer', either in Scheme or in
C++? This should make transition to Guile-2 simple.
Werner
___
scm_is_integer is not nearly a sufficient prerequisite for calling
scm_to_int (well, of course there are size limits but that's not what I
am talking about). Try
{ \repeat unfold #2.0 c'1 }
which crashes in some strange place. Use #2 instead and it works (of
course), use #2.5 and it fails in