On Sun, Sep 5, 2010 at 11:56 AM, Yakov Zaytsev <zaytsev.yakov@gmail.com> wrote:
(defmacro define-struct-getter (struct package &rest slots)(loop for s in slotsdo (let ((acc (intern (concatenate 'string (symbol-name struct) "-" (symbol-name s))))(sp (intern s package)))(eval `(defmacro ,acc (object)`(access-slot ,object ',',sp))))))