Page 1 of 1

(swap odd or not)?

Posted: Mon Jul 13, 2009 8:57 pm
by newdep
Hi Lutz,

Running this from the command line returns without a trace of a problem..
so that looks ok...(but is it?)

Code: Select all

$> newlisp -e "(swap (copy '(a b)))"
(a b)
$>
But running that from inside the newlisp intepreter is a different story ->

Code: Select all

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.

Posted: Mon Jul 13, 2009 9:08 pm
by newdep
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)

Posted: Mon Jul 13, 2009 10:06 pm
by Lutz
This should throw an error, because the second argument is missing; 'swap' takes two arguments. This will be fixed to throw an error.