[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need help with a macro
From: |
Josef Wolf |
Subject: |
Re: Need help with a macro |
Date: |
Mon, 16 Nov 2009 18:40:20 +0100 |
User-agent: |
Mutt/1.5.17 (2007-11-01) |
On Sun, Nov 15, 2009 at 07:18:33PM +0100, Andy Wingo wrote:
> On Sun 15 Nov 2009 17:33, Josef Wolf <address@hidden> writes:
> > I am trying to work through the little schemer book. In order to make it
> > easier to go through the examples, I've come up with the following macro:
> > [ ... ]
>
> Does the little schemer book actually use defmacro?
It does not. But I use it only to avoid typing everything twice. I think it
is allowed for such usage ;-)
> Anyway the issue is that defmacro needs to return Scheme code as an
> s-expression. The last expression in a function is its return value.
> That would be the `(display ,exp) bit there. But if you uncomment the
> newlines, well, you return whatever newline returns, which is actually
> unspecified.
Thanks!