Path: utzoo!utgpu!attcan!uunet!mcvax!ukc!eagle!icdoc!qmc-cs!flash
From: flash@ee.qmc.ac.uk (Flash Sheridan)
Newsgroups: comp.lang.lisp
Subject: macroexpansion Environments in CL (was: Re: EVAL with environment)
Message-ID: <573@sequent.cs.qmc.ac.uk>
Date: 9 Aug 88 09:47:00 GMT
References: <5071@zodiac.UUCP> <24909@think.UUCP> <63216@sun.uucp>
Sender: root@cs.qmc.ac.uk
Reply-To: sheridan@nss.cs.ucl.ac.uk
Organization: EE Dept, Queen Mary College, U London E1-4NS
Lines: 18
or_perhaps_Reply_to: flash@cs.qmc.ac.uk


I admit it is a good thing not to specify the format of environments, but I
wish CL defined a bit more access to them.  The only way I could figure out
to find _any_ environment of any sort in pure Common Lisp is:

(defun print-env  ()
  (macrolet ((fudge (&environment env)
		    `',env))
    (print "the environment is:") (terpri)
    (print (fudge) )
    ))

It took me entirely too long to figure this out, largely because of appalling
proof-reading in CLtL.

From: flash@ee.qmc.ac.uk (Flash Sheridan)
Reply-To: sheridan@nss.cs.ucl.ac.uk
or_perhaps_Reply_to: flash@cs.qmc.ac.uk