Discussion of Common Lisp
Post Reply
Posts: 1
Joined: Tue Dec 11, 2012 1:30 pm


Post by m1988 » Tue Dec 11, 2012 3:20 pm

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

Posts: 98
Joined: Thu Jul 10, 2008 7:14 pm

Re: Lispworks

Post by JamesF » Thu Dec 13, 2012 4:23 am

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.

Post Reply