(swap odd or not)?

Started by newdep, July 13, 2009, 01:57:41 PM

Previous topic - Next topic

newdep

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.
-- (define? (Cornflakes))

newdep

#1
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)
-- (define? (Cornflakes))

Lutz

#2
This should throw an error, because the second argument is missing; 'swap' takes two arguments. This will be fixed to throw an error.