Subject: Re: Three questions
From: rpw3@rpw3.org (Rob Warnock)
Date: Fri, 19 Jun 2009 03:40:53 -0500
Newsgroups: comp.lang.lisp
Message-ID: <l7ydnYpcvbmI0qbXnZ2dnUVZ_hhi4p2d@speakeasy.net>
Thomas A. Russ <tar@sevak.isi.edu> wrote:
+---------------
| vippstar <vippstar@gmail.com> writes:
| >    (defun my-car2 (list) (temporarily *list* list (my-car)))
| 
| Again, this is already the normal function of LET binding of global
| variables.  You would just write
| 
| (defun my-car2 (list) 
|    (let ((*list* list))
|       (my-car)))
| 
| and you would be done.  Common Lisp already has a lot of this flexibilty
| already built in.
+---------------

Even simpler:   ;-}

    (defun my-car2 (*list*)
      (my-car))


-Rob

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