[Openmcl-devel] SETQ

Robert Boyer boyer at cs.utexas.edu
Tue Dec 16 12:40:48 PST 2008


Thanks for the illumination!

I should say I was thinking about Lisp 1.5, but that
would be a lie.  I just wasn't thinking, as usual.

Bob


-------------------------------------------------------

From: Stelian Ionescu <sionescu at common-lisp.net>
To: openmcl-devel at clozure.com
Date: Tue, 16 Dec 2008 21:33:07 +0100
Subject: Re: [Openmcl-devel] SETQ


--===============5340710733286538544==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-8wyDSzy04r2KCbqhXXgo"


--=-8wyDSzy04r2KCbqhXXgo
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Tue, 2008-12-16 at 13:47 -0600, Robert Boyer wrote:
> > SETQ is a special form. It cannot be written by a
> > simple macro.
>=20
> I get dumber every day, but I increasingly enjoy it
> every time that someone shows me how wrong I am.
>=20
> What's so bad about:
>=20
>   (defmacro new-setq (x y) `(set ',x ,y))
>=20
> In my remarks, I was thinking rhetorically and
> historically about Lisp way back at its creation in the
> 50s, way before the terms 'special form' and 'special
> operator' and 'special' were coined.  No doubt you are
> right, though, in a fine sense.

Quoth the HyperSpec, "If any var refers to a binding made by
symbol-macrolet, then that var is treated as if setf (not setq) had been
used."

--=20
Stelian Ionescu a.k.a. fe[nl]ix
Quidquid latine dictum sit, altum videtur.


--=-8wyDSzy04r2KCbqhXXgo
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEABECAAYFAklIEIMACgkQjWsER8+9ASU2tgCfe3gadkThNa1OMUnz07pVdCvE
pqEAniLOxJnm3KRx0TBskRQ1+GugVhIJ
=l9tW
-----END PGP SIGNATURE-----

--=-8wyDSzy04r2KCbqhXXgo--


--===============5340710733286538544==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Openmcl-devel mailing list
Openmcl-devel at clozure.com
http://clozure.com/mailman/listinfo/openmcl-devel

--===============5340710733286538544==--




More information about the Openmcl-devel mailing list