(swap odd or not)?

Q&A's, tips, howto's
Locked
newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

(swap odd or not)?

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

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

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

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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.

Locked