[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] macroexpand-1 not expanding a macro(?)
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] macroexpand-1 not expanding a macro(?) |
Date: |
Thu, 28 Feb 2008 08:58:06 +0100 |
On Wed, Feb 27, 2008 at 2:42 PM, Peter Wright <address@hidden> wrote:
> Hi all,
>
> This is probably something really obvious, but I just can't
> work it out.
>
> I borrowed (and adapted) the example from the Common Lisp Hyperspec
> (http://www.lisp.org/HyperSpec/Body/fun_macroexpa_acroexpand-1.html),
> as I couldn't seem to google up an example of macroexpand-1 in any
> Scheme, let alone Chicken:
macroexpand-1 works only with the low-level macro expander. syntax-case
(and all other hygienic macro expanders) expand a toplevel form completely
(in fact, the have to to take context information into account and perform
internal renaming. Well I think they do), so macroexpand-1 is not available
here and does the same as macroexpand.
cheers,
felix