Page 1 of 1

SLICE segfaults

Posted: Tue Mar 02, 2004 10:06 pm
by 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.

Posted: Tue Mar 02, 2004 10:22 pm
by Lutz
thanks, this is fixed in 7.5.6

Lutz