Re: Now this is a nightmare...

2018-07-04 Thread Werner LEMBERG
>> 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

Re: Now this is a nightmare...

2018-07-04 Thread David Kastrup
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

Re: Now this is a nightmare...

2018-07-04 Thread David Kastrup
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

Re: Now this is a nightmare...

2018-07-04 Thread Dan Eble
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

Re: Now this is a nightmare...

2018-07-04 Thread David Kastrup
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

Re: Now this is a nightmare...

2018-07-04 Thread David Kastrup
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-

Re: Now this is a nightmare...

2018-07-04 Thread Werner LEMBERG
> 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 ___