Page 1 of 1

join problem

Posted: Tue Oct 03, 2006 10:32 am
by cormullion
I accidentally did this:

Code: Select all

(join '(1 2 3))
rather than

Code: Select all

(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:

Code: Select all

(join (sequence 1 10))
;-> 12345678910
although I would have written

Code: Select all

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

Posted: Tue Oct 03, 2006 11:35 am
by Lutz
Thanks for this discovery, this will be taken care of in the 8.9.15, should give an error message.

Lutz