Re: Need help with a macro

2009-11-16 Thread Josef Wolf
On Sun, Nov 15, 2009 at 07:18:33PM +0100, Andy Wingo wrote: > On Sun 15 Nov 2009 17:33, Josef Wolf 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 sc

Re: Need help with a macro

2009-11-16 Thread Josef Wolf
On Sun, Nov 15, 2009 at 08:26:58PM +, Neil Jerram wrote: > Josef Wolf 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: > > [ ... ] > > The body of a define-macro definition is sup

Re: Need help with a macro

2009-11-15 Thread Andy Wingo
Hello, On Sun 15 Nov 2009 17:33, Josef Wolf writes: > Hello, > > 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: > > ;;; Helper to visualize > > (define-macro (disp exp) > (display exp)

Re: Need help with a macro

2009-11-15 Thread Neil Jerram
Josef Wolf writes: > Hello, > > 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: > > ;;; Helper to visualize > > (define-macro (disp exp) > (display exp) (newline) > `(display ,exp) >

Need help with a macro

2009-11-15 Thread Josef Wolf
Hello, 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: ;;; Helper to visualize (define-macro (disp exp) (display exp) (newline) `(display ,exp) ; (newline) (newline) ) This wor