newLISP Fan Club

Forum => newLISP in the real world => Topic started by: pjot on March 02, 2004, 02:06:39 PM

Title: SLICE segfaults
Post by: pjot on March 02, 2004, 02:06:39 PM
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.
Title:
Post by: Lutz on March 02, 2004, 02:22:58 PM
thanks, this is fixed in 7.5.6



Lutz