Lispworks

Discussion of Common Lisp

Lispworks

Postby 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..
m1988
 
Posts: 1
Joined: Tue Dec 11, 2012 1:30 pm

Re: Lispworks

Postby 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.
JamesF
 
Posts: 95
Joined: Thu Jul 10, 2008 7:14 pm


Return to Common Lisp

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron