Subject: Re: How powerful macros are?
From: rpw3@rpw3.org (Rob Warnock)
Date: Wed, 23 Mar 2005 22:35:50 -0600
Newsgroups: comp.lang.lisp
Message-ID: <m7SdnS5UusQ73t_fRVn-3A@speakeasy.net>
Frank Buss  <fb@frank-buss.de> wrote:
+---------------
| "V.Ch." <fake@notreal.com> wrote:
| > Currently my knowledge of macros (and Lisp as a whole) is extremely 
| > superficial...
| 
| you should do some more Lisp programming, then it feels more natural, 
| because the underlying "place" concept is very general and can be used 
| for all kinds of variable settings, for example:
| CL-USER > (defparameter *test* '(1 2 3))
| *TEST*
| CL-USER > (setf (car *test*) 5)
| 5
| CL-USER > *test*
| (5 2 3)
+---------------

Frank, when speaking to raw newbies it's important to encourage
good habits from the very start, and *not* to encourage undefined
behavior, even though it might require a few more bytes of typing
when constructing examples. One hopes that you really meant to write
the following instead, yes?

  CL-USER > (defparameter *test* (list 1 2 3))


-Rob

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