Message from discussion
Are macros really a neccessity, or a coverup of language deficiencies?
From: Marius Vollmer <m...@zagadka.ping.de>
Subject: Re: Are macros really a neccessity, or a coverup of language deficiencies?
Date: 2000/04/29
Message-ID: <87ln1xce9t.fsf@zagadka.ping.de>#1/1
X-Deja-AN: 617154715
Sender: mvo@zagadka
References: <390371F0.36455F4E@makif.omer.k12.il> <3165894081922447@naggum.no> <3909FE18.F1CBE25C@yahoo.com> <3165947477983371@naggum.no> <F4oO4.96$xb5.3350@burlma1-snr2> <gat-2804001609230001@milo.jpl.nasa.gov>
Mail-Copies-To: never
Content-Type: text/plain; charset=us-ascii
X-Trace: unknown 957009342 346 127.0.0.1 (29 Apr 2000 11:55:42 GMT)
Organization: Ping e.V. Dortmund, private site
Mime-Version: 1.0
User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.5
Newsgroups: comp.lang.lisp
g...@jpl.nasa.gov (Erann Gat) writes:
> (defun read-smalltalk-like-[ (stream char &optional arg)
> (declare (ignore char arg))
> (let* ( (params (read-delimited-list #\| stream nil))
> (body (read-delimited-list #\] stream nil)) )
> (eval `(lambda ,params ,@body))))
^^^^
Why are you calling EVAL here? Doesn't it put the closure in the
wrong lexical environment? I think just returning `(lambda ...) is
the right thing. Just testing my understanding.
- Marius