Subject: Re: calling compiled lambda forms
From: rpw3@rpw3.org (Rob Warnock)
Date: Sat, 30 Jun 2007 22:19:12 -0500
Newsgroups: comp.lang.lisp
Message-ID: <oOWdnYYc59KtgBrbnZ2dnUVZ_rDinZ2d@speakeasy.net>
Tamas Papp <tkpapp@gmail.com> wrote:
+---------------
| Pascal Costanza <pc@p-cos.net> writes:
| > There is no good reason to do what you seem to want to do. ...
| 
| I am not writing any program, just going through On Lisp and playing
| around in the REPL.
+---------------

O.k., in that case others have answered you -- FUNCALL is your friend:

    > (funcall (compile nil (lambda (x y) (1- (expt x y))))
	       2
	       100)
    ; Compiling LAMBDA (X Y): 
    ; Compiling Top-Level Form: 

    1267650600228229401496703205375
    > 


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607