Page 1 of 1

Lispworks

Posted: Tue Dec 11, 2012 3:20 pm
by m1988
How do I call a function in a file in Lispworks? Say I've created the file test.lisp with: (defun double (x) (* x 2)).
Now I want to compile this file and fill in some value for x for the function double.
Do I do this in Output or Listener? And how? Because I've tried both..

Re: Lispworks

Posted: Thu Dec 13, 2012 4:23 am
by JamesF
I expect it's the same for Lispworks as for other lisps: you need to evaluate the file, to define that function in the running image, then call the function.