chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] [Chicken-users] 4.9.0rc1: Error: (assv) bad argume


From: Evan Hanson
Subject: Re: [Chicken-hackers] [Chicken-users] 4.9.0rc1: Error: (assv) bad argument type: null
Date: Sat, 3 May 2014 22:45:04 -0700
User-agent: OpenSMTPD enqueuer (Demoosh)

Hi Andy,

The error on 4.9.0rc1 is likely due to 0a52536, which made `assoc`,
`member` et al. signal errors when their second arguments aren't lists
instead of just returning #f (or the sentinel value). This is new
behavior since 4.7.0, and IIRC there were a couple of places in CHICKEN
itself that required updating after this change too, since they were
also relying on these cases returning #f.

Anyway, when passed `eqv?` as a comparator *before* importing numbers,
`alist-ref` uses CHICKEN's built-in `assq` for the search, including
this new behavior. *After* importing numbers, however, you're really
passing the numbers extension's version of `eqv?`, which `alist-ref`
doesn't take as a signal to use the built-in `assq` and instead falls
back to a search function that matches the pre-0a52536 (i.e. 4.7.0)
behavior and returns #f/the sentinel value.

@ -hackers: I think `alist-ref`'s fallback search function should match
the behavior of core's versions. Objections?

Evan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]