justinethier/cyclone

`assv` seems implemented as `assq`

okuoku opened this issue · 2 comments

Tested: https://github.com/justinethier/cyclone/tree/cf66cf1057fcd687cc42d4d7dcaeeef00cba089b

It seems assv implemented as assq.

cyclone> (define a 0.0)
ok
cyclone> (assoc a (list (list a)))
(0.0)
cyclone> (assoc 0.0 (list (list a)))
(0.0)
cyclone> (assv a (list (list a)))
(0.0)
cyclone> (assv 0.0 (list (list a)))
#f

Did you mean assv here?

cyclone/runtime.c

Line 5395 in 6ffd229

return_closcall1(data, cont, assq(data, args[1], args[2]));

(and maybe memvp here

cyclone/runtime.c

Line 5409 in 6ffd229

return_closcall1(data, cont, memqp(data, args[1], args[2]));
)

xref: #375

Good catch, let me take a look.

Thanks for the report @okuoku. This is now fixed on our primary branch in GitHub.