On Sun, Nov 15, 2009 at 07:18:33PM +0100, Andy Wingo wrote: > On Sun 15 Nov 2009 17:33, Josef Wolf <[email protected]> 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!
