Re: question about eval
From: Peter Seibel (peter_at_gigamonkeys.com)
Date: 03/03/05
- Next message: Artie Gold: "Re: Practical Common Lisp to stay on web"
- Previous message: Dave Roberts: "Re: Wanted: Magic Lisp snippets"
- In reply to: bhaskara_at_gmail.com: "Re: question about eval"
- Next in thread: bhaskara_at_gmail.com: "Re: question about eval"
- Reply: bhaskara_at_gmail.com: "Re: question about eval"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Artie Gold: "Re: Practical Common Lisp to stay on web"
- Previous message: Dave Roberts: "Re: Wanted: Magic Lisp snippets"
- In reply to: bhaskara_at_gmail.com: "Re: question about eval"
- Next in thread: bhaskara_at_gmail.com: "Re: question about eval"
- Reply: bhaskara_at_gmail.com: "Re: question about eval"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|