[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Now this is a nightmare...
From: |
Werner LEMBERG |
Subject: |
Re: Now this is a nightmare... |
Date: |
Wed, 04 Jul 2018 15:55:16 +0200 (CEST) |
>> 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 getting linked and the
> Guile-2 version left out. Or we get double-definition link-time
> errors. So we want an autoconf test and so on.
Yep.
> 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.
This should also work, of course. And transition to Guile-2 would be
a simple s/// operation.
Werner