Re: Invalid arguments when trying to port SRFI-207 to Chicken 5
Wolfgang Corcoran-Mathe 11 Nov 2020 18:12 UTC
Hi Sergey,
On 2020-11-11 05:37 -0800, xxxxxx@mailc.net wrote:
> But setting aside the SRFI-145 issue, is there some indication of what
> could be causing the assumptions not to hold or how the could be fixed?
I don't think any assumptions are actually failing. Rather, the
CHICKEN compiler is just warning you that, were an assumption to
fail, car would be evaluated with an invalid argument. Which is
the whole idea.
But this is just the low-budget fallback for systems without
SRFI 145. Since CHICKEN has it, but doesn't have support for the
(library ...) cond-expand form, I'd suggest just adding an explicit
(import (srfi 145)) to your module file.
Regards,
--
Wolfgang Corcoran-Mathe <xxxxxx@sigwinch.xyz>
"What's our game? We have the ways of making things, but things are
evidence. Perhaps, one day, the thing we'll make is sense."
--Conor McBride