From ... Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!news.tele.dk!129.240.148.23!uio.no!Norway.EU.net!127.0.0.1!nobody From: Erik Naggum Newsgroups: comp.lang.lisp Subject: Re: Q: how to turn a list of symbols into a function? Date: 30 Oct 2000 12:34:08 +0000 Organization: Naggum Software; vox: +47 800 35477; gsm: +47 93 256 360; fax: +47 93 270 868; http://naggum.no; http://naggum.net Lines: 30 Message-ID: <3181898048463480@naggum.net> References: <39FC64DB.868D0EB6@loopback.mersenne.com> <39FC7F11.48BC4F33@loopback.mersenne.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: oslo-nntp.eunet.no 972912130 12249 195.0.192.66 (30 Oct 2000 13:22:10 GMT) X-Complaints-To: newsmaster@eunet.no NNTP-Posting-Date: 30 Oct 2000 13:22:10 GMT mail-copies-to: never User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7 Xref: supernews.google.com comp.lang.lisp:2889 * Rainer Joswig | It is simply a notation for lists: | | (list '+ pi pi) | | is the same as: | | `(+ ,pi ,pi) | | You can think of it as follows: | | In (list '+ pi pi) you have write the list constructing function | (here LIST) and you have to quote the constants (here the symbol +). | | In `(+ ,pi ,pi) you write a list template and everything is constant | - except in the places after the minus characters - so you are | unquoting (-> forcing the evaluation at these places). So it is kind | of opposite from the above. Except that the result of the backquote form is to be treated as a constant. The list structure may not be modified as it might be shared with other list structures. (list ...) constructs a list at run-time. `(...) constructs at least parts of the list at read-time. #:Erik -- Does anyone remember where I parked Air Force One? -- George W. Bush