SLICE segfaults

Started by pjot, March 02, 2004, 02:06:39 PM

Previous topic - Next topic

pjot

Hi Lutz,



Using the command "slice" in an erroneous way delivers a segfault. Might it not be more user-friendly to generate a newLISP error so it is clear where the problem comes from? For example, this code:



---------------------------------------

#!/usr/bin/newlisp



(set 'var "This is newLISP")

(println(slice var 1 -1))

---------------------------------------



uses "slice" in a way that is applicable for lists, not for strings. If I run it however, I receive a segfault (Slackware 9.1).



Regards



Peter.

Lutz

#1
thanks, this is fixed in 7.5.6



Lutz