Discussion of Common Lisp
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: 1
- Joined: Tue Dec 11, 2012 1:30 pm
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.
- Posts: 95
- Joined: Thu Jul 10, 2008 7:14 pm
Return to Common Lisp
Who is online
Users browsing this forum: Beltxarga, Bing [Bot], Yahoo [Bot] and 3 guests