newLISP Fan Club

Forum => newLISP in the real world => Topic started by: newdep on July 13, 2009, 01:57:41 PM

Title: (swap odd or not)?
Post by: newdep on July 13, 2009, 01:57:41 PM
Hi Lutz,



Running this from the command line returns without a trace of a problem..

so that looks ok...(but is it?)


$> newlisp -e "(swap (copy '(a b)))"
(a b)
$>


But running that from inside the newlisp intepreter is a different story ->


newLISP v.10.0.5 on Linux IPv4, execute 'newlisp -h' for more info.

> (swap (copy '(a b)))
(a b)

Killed
$>


I wonder where the issue is..?



Norman.
Title:
Post by: newdep on July 13, 2009, 02:08:49 PM
I know this loops...



But is it newlisp that appends direclty an (exit) to it from the command-line?



Seems the SIGKILL comes from somewhere when running inside the intepreter..(or by newlisp memory management or from the the shell or the kernel)
Title:
Post by: Lutz on July 13, 2009, 03:06:59 PM
This should throw an error, because the second argument is missing; 'swap' takes two arguments. This will be fixed to throw an error.