Re: question about eval

From: Peter Seibel (peter_at_gigamonkeys.com)
Date: 03/03/05


Date: Thu, 03 Mar 2005 01:38:07 GMT

bhaskara@gmail.com writes:

> OK, but the point is that we may not know at compile time what the
> forms are. I want to be able to write things like
>
> (defun print-a-number (M)
> (choose (loop for i below M collect '(pprint i))))

And what do you want the expansion of CHOOSE to be? That is, write "by
hand" the code that you want CHOOSE to generate. (BTW, I assume you
mean `(print ,i)?)

-Peter

-- 
Peter Seibel                                     peter@gigamonkeys.com
         Lisp is the red pill. -- John Fraser, comp.lang.lisp


Relevant Pages