david135 / mosh-scheme

Automatically exported from code.google.com/p/mosh-scheme
Other
0 stars 0 forks source link

assoc won't check their arg. properly #159

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(assoc 0 #f) => OK (reports err)
(assoc 0 '(1)) => SEGV

see http://www.r6rs.org/final/html/r6rs-lib/r6rs-lib-Z-H-4.html#node_idx_234

> The implementation must check that alist is a chain of pairs containing pairs 
up to the found pair, or that it is indeed a list of pairs if no element is 
found. 
> It should not check that it is a chain of pairs beyond the found element. 

Original issue reported on code.google.com by oku...@gmail.com on 5 Jul 2010 at 3:50

GoogleCodeExporter commented 9 years ago
Fixed.

> It should not check that it is a chain of pairs beyond the found element. 
This spec is good.

Original comment by hige...@gmail.com on 5 Jul 2010 at 2:32