join problem

Started by cormullion, October 03, 2006, 03:32:04 AM

Previous topic - Next topic

cormullion

I accidentally did this:


(join '(1 2 3))

rather than


(join '("1" "2" "3"))

and join wasn't happy - I had to kill the newLISP session.



In general, should user-errors like this be guarded against in the code, or should we be allowed to shoot ourselves in the foot?



Or perhaps join could do this:


(join (sequence 1 10))
;-> 12345678910


although I would have written


(join (map string (sequence 1 10)))
[/code]

Lutz

#1
Thanks for this discovery, this will be taken care of in the 8.9.15, should give an error message.



Lutz