This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Problem with CL defmacro
- From: Per Bothner <per at bothner dot com>
- To: Are Meisfjord <are at meisfjord dot com>
- Cc: kawa at sources dot redhat dot com
- Date: Tue, 10 Dec 2002 23:57:12 -0800
- Subject: Re: Problem with CL defmacro
- References: <214440-22002122108405593@meisfjord.com>
Are Meisfjord wrote:
C:\>java kawa.repl --common-lisp
#|kawa:1|# (defmacro foo (bar) `(list ,bar))
<stdin>:1:2: Missing macro name for define-syntax
This works fine in scheme mode. Is something wrong with my setup?
The basic problemis that Scheme using String to represent symbols,
while Common Lisp uses gnu.mapping.Symbol objects.
Not tha long ago I generalized a lot of the code (especially
in gnu.expr) so that a "name" can be either a String or a Symbol.
but there are still various problem. I managed to fix some easy
ones, so that the defmacro is accepted, but it then fails
*using* the macro, with 'bar' being unbound. Again, probably
related to the String/Symbol differemce.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/