[plt-scheme] Implementation of define-struct

From: Luís Fernando Schultz Xavier da Silveira (lfsxs0 at gmail.com)
Date: Sun Jul 19 18:38:39 EDT 2009

I have a very simple (and probably stupid) question I can't figure
out. Assuming the define-struct feature is not a core form, how is it
it defines names based on a macro argument?

For instance, (define-struct point (x y)) generates point?, make-point,
point-x and point-y. But how exactly is it I can create a macro that
will define bindings whose names are derived from its arguments?

Thanks in advance,
Luís Fernando

Posted on the users mailing list.