Possible bug in "copy-list"


#1

When I do the following:

(defvar a (cons 4 5))
(defvar b nil)
(setf b (copy-list a))

… uLisp crashes (ARM version). Maybe it’s not intended to use “copy-list” with a dotted pair?


#2

I confirm this crashes uLisp. The Common Lisp documentation says:

Returns a copy of a list. If the list is a dotted list, the resulting list will also be a dotted list.

so it should work. I’ll fix it for next release - thanks for finding this!


#3

#4

This is now fixed in ARM Release 4.7b. Other versions to follow.