Re: Need help to understand a macro

2010-03-19 Thread Ken Raeburn
On Mar 19, 2010, at 04:57, Josef Wolf wrote: My next question is more related to the defstruct macro. In line 11, defstruct stores the default initializers into the vv vector: (if (pair? f) (cadr f) '(if #f #f))) So if the field is a pair, the initializer is stored in vv. That's easy.

Re: Need help to understand a macro

2010-03-19 Thread Andreas Rottmann
Andy Wingo wi...@pobox.com writes: Hi, On Fri 19 Mar 2010 09:57, Josef Wolf j...@raven.inka.de writes: (show-expansion (defstruct tree height girth age leaf-shape leaf-color)) (macroexpand '(defstruct ...)) You might want to surround that with (pretty-print ...) from (ice-9